sort array of size n

Posted by Grv on Stack Overflow See other posts from Stack Overflow or by Grv
Published on 2010-04-12T12:13:06Z Indexed on 2010/04/12 12:23 UTC
Read the original article Hit count: 227

Filed under:
|
|

if an array of size n has only 3 values 0 ,1 and 2 (repeated any number of times) what is the best way to sort them. best indicates complexity. consider space and time complexity both

© Stack Overflow or respective owner

Related posts about c

    Related posts about c++