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.
I have use same logic as your code. You said it in not pythonic. But this is what logic came into my mind as I am new to python. Though it is failing for TC 2 & 3. What should I do for more cool work as everyone have done for this statement problem.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Nested Lists
You are viewing a single comment's thread. Return to all comments →
I have use same logic as your code. You said it in not pythonic. But this is what logic came into my mind as I am new to python. Though it is failing for TC 2 & 3. What should I do for more cool work as everyone have done for this statement problem.