3 ms·You asked for algorithms that use constant memory. So M is a constant and M log M is constant too.by lacker 18y agoYou asked for algorithms that use constant memory. So M is a constant and M log M is constant too.