about | help | code help+videos | done | prefs |
reverseList
Create a dictionary from a list such that the keys are the values in the list, and the associated values are the indices of the respective values. Assume all of the values in the list are unique.
reverseList([]) → [{}] reverseList([6]) → [{6: 0}] reverseList([55, 89]) → [{55: 0, 89: 1}] ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy