chenyufeng1991 / 26.-remove-duplicates-from-sorted-array Goto Github PK
View Code? Open in Web Editor NEWGiven a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space for another array, you must do this in place with constant memory.