Tuesday, December 29, 2009

Sorting

Sort an array which consists of 0, 1 and 2.

Time complexity : O(n) [It should be O(1*n)]

Space Complexity : O(1)

To view the solution refer::
sort
sort.c
Hosted by eSnips

No comments: