about | help | code help+videos | done | prefs |
Once again we want to determine the duplicate names in a list. Given a list of names, return a sorted list of lists where each list contains the names that occur more than once and how often they occur. dups2(['alpha', 'beta', 'gamma', 'delta', 'alpha']) → [['alpha', 2]] dups2(['alpha', 'beta', 'gamma', 'delta']) → [] dups2(['abc', 'xyz', 'mnp', 'mnp', 'abc', 'xyz', 'abc']) → [['abc', 3], ['mnp', 2], ['xyz', 2]] ...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