Pattern Recognition
#9easy

Remove Duplicates from Sorted Donor List

A charity maintains a sorted list of donor IDs. Due to a system glitch, some IDs appear multiple times consecutively. Modify the list in-place so each donor ID appears only once, and return the new length. The list is already sorted in ascending order.

Which pattern would you use?

Foundations

Intermediate

Advanced