Categories
Uncategorized

Implement uniqe for a sorted array

Write code to extract unique elements from a sorted array. e.g. (1,1,3,3,3,5,5,5,8,8,8,8) -> (1,3,5,9)

Slow ball question but good for practice. (I got it from http://www1.cs.columbia.edu/~kns10/interview/)

Leave a Reply