Delete Repeated Numbers


/ Published in: C
Save to your folder(s)

Given a sorted array return the new length of the array with no-repeated numbers.

Interesting test cases:

* All the same number
* No repetitions
* Empty array
* Negative size
* One element

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.