Sorted and Unique
Easy · Text Processing · sort · uniq
Problem
names.txt has one name per line, unsorted, with repeats.
Print each distinct name once, in alphabetical order.
Approaches
- sort | uniq
Related problems
Start free on Cariara · Coding problems · System design studio