Solved LeetCode program · 83 of 1,000
#0083 · Remove Duplicates from Sorted List
Original English source
The values is a list of 1, 1, 2. The result is an empty list of whole numbers. The resultcount is 0.
For each value in values.
If resultcount is 0 or item (resultcount minus 1) of result is not value, Place value into result, add 1 to resultcount.
For each value in result, report value.
Expected stdout
1 2