Remove duplicates from array in place, return new array length
Anonymous
Construct a heap = O(n) get the Min, put it back in the Array[N - l] where N is the size of the array, and l is unique element found so far let say curMin = Min coninue removing element from the stack until the Min != curMin
Check out your Company Bowl for anonymous work chats.