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.
Indeed indeed.
I suggest to simply print the function input. I quite often do it. It usually helps better visualizing the data we're dealing with. Sometimes, like in this case, it reveals an unexpected input format, which was a bit frustrating though easy to fix.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Cats and a Mouse
You are viewing a single comment's thread. Return to all comments →
Indeed indeed. I suggest to simply print the function input. I quite often do it. It usually helps better visualizing the data we're dealing with. Sometimes, like in this case, it reveals an unexpected input format, which was a bit frustrating though easy to fix.