DevPath

De-duplicate values preserving order

Foundation · fluency · 15 min · runtime python

Brief

Implement unique(values: list[str]) -> list[str] that removes duplicates while preserving the first-seen order. Do not sort the result.

3 progressive hints are available in the editor.

Public checks

  • removes duplicates — expected: ["a","b"]
  • preserves order — expected: ["b","a"]