The TransCompilator

Solved LeetCode program · 83 of 1,000

#0083 · Remove Duplicates from Sorted List

Easy Linked List chunk-02.md

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.

Open in Playground Browse all 1,000 problems

Expected stdout

1
2