We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Collections.OrderedDict()
Collections.OrderedDict()
Sort by
recency
|
720 Discussions
|
Please Login in order to post a comment
Without any module:
IMO: This problem may be helpful to know what is OrderedDict? However Python version 3.10 and beyond already has dictionary as ordered .
FYI: Used OrderDict from collection or dict() solves the problem
Do let me know your opinion?
Here is HackerRank Collections.OrderedDict() in python solution - https://programmingoneonone.com/hackerrank-collections-ordereddict-solution-in-python.html
This is a bit of a wierd question, implying the computer is input lots of different lines instead of just a single input, for _ in range(int(input())): print (input())