Remove the duplicates from an array in place
Anonymous
sort the array. then take two pointers, slow and fast. fast will scan for duplicate values in front of slow and whenever a duplicate is detected. it skips that. non duplicated values are preserved, duplicates are overwritten.
Check out your Company Bowl for anonymous work chats.