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.
Many users are sorting using lambda but the problem calls for using itemgetter. My solution works but evaluates as wrong answer for test cases 10, 11 and 12. I tried copying the test case 10 input as manual test input and it worked. (:scratching-head:)
Decorators 2 - Name Directory
You are viewing a single comment's thread. Return to all comments →
Many users are sorting using lambda but the problem calls for using itemgetter. My solution works but evaluates as wrong answer for test cases 10, 11 and 12. I tried copying the test case 10 input as manual test input and it worked. (:scratching-head:)
Solution:
Test case 10 input that works as manual test input but not in the automated test: