Foundation · Coding exercise
Remove duplicates while preserving order
sets · lists · hashing
Guest practice stays in this visit. Sign in to save your progress. Checks cover the stated cases; discussion rubrics are self-reviewed. These tasks do not mark course lessons complete.
DrillRemove duplicates while preserving order
Implement unique(values) for a list of integers. Return the first occurrence of each value, in encounter order. Do not modify the input.