find unique elements
Write, efficient code for extracting unique elements from a sorted list of array. e.g. (1, 1, 3, 3, 3, 5, 5, 5, 9, 9, 9, 9) -> (1, 3, 5, 9).
o(n)
And what if the elements are not in sorted order.
o(n)
And what if the elements are not in sorted order.
Comments
Post a Comment