Ace Algorithms and Programming Interviews in Swift: Remove Duplicates From sorted array

preview_player
Показать описание


Рекомендации по теме
Комментарии
Автор

Hey, I've got a clarification question. From the question posed at the beginning of the video, we were supposed to "remove the duplicates in-place such that each element appear(s) only once and return the new length" but we ended up just left-shifting the unique elements and didn't actually remove the "non-unique" elements? Would this have been an acceptable answer since we didn't meet the full requirement albeit we met half of it?

micahjesse