about | help | code help+videos | done | prefs |
We want to determine the duplicate names in a list. Given a list of names, return a sorted list of only the names that occur more than once. dups(['alpha', 'beta', 'gamma', 'delta', 'alpha']) → ['alpha'] dups(['alpha', 'beta', 'gamma', 'delta']) → [] dups(['abc', 'xyz', 'mnp', 'mnp', 'abc', 'xyz']) → ['abc', 'mnp', 'xyz'] ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 200
Copyright Nick Parlante 2017 - privacy