Collections.OrderedDict()
-
Practice>Python>Collections>Collections.OrderedDict()hackerrank.com 2019. 2. 14. 18:05
Collections.OrderedDict()Problem link : https://www.hackerrank.com/challenges/py-collections-ordereddict/problemDifficulty : easy Tipthe sequence of input should be ordered, so it is good to practice how to use OrderedDict()Utilize rpartition() or rfind() to split name and priceCheck the name is existed in orderedDictIf it is, add priceIf not, add new name and price Solution from collections imp..