11 ms·
This is only for algorithms whose output is solely dependent on the outcomes of comparisons of input values. Otherwise you can for instance sort an input made
by devit 4y ago
This is only for algorithms whose output is solely dependent on the outcomes of comparisons of input values.
Otherwise you can for instance sort an input made of zeroes and ones in O(n) time and O(log(n)) space by counting the ones.