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 think this problem merits the medium rating it wound up at.
It is very easy to say "this is easy" and throw an overly simple code at it that misses a test case or two.
That both makes you appreciate that it probably is a medium problem and that test case writers are terribly underappreciated.
Any non-trivial work, you can't overestimate the importance of having great test cases that don't miss weird corner cases and funny things that will "hardly ever happen" == "all the time" when huge amounts of data come at you.
Even in my not-quite-big-data career I've seen the craziest things happen because with still huge amounts of real data coming in to your software the incredibly rare conicidences still happen and break your code which is rock-solid unless one of those bizarre corner cases hits it and brings it down. Hooray for sufficient test cases and those hard-working underappreciated heros who write them.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Sherlock and the Valid String
You are viewing a single comment's thread. Return to all comments →
I think this problem merits the medium rating it wound up at. It is very easy to say "this is easy" and throw an overly simple code at it that misses a test case or two. That both makes you appreciate that it probably is a medium problem and that test case writers are terribly underappreciated.
Any non-trivial work, you can't overestimate the importance of having great test cases that don't miss weird corner cases and funny things that will "hardly ever happen" == "all the time" when huge amounts of data come at you.
Even in my not-quite-big-data career I've seen the craziest things happen because with still huge amounts of real data coming in to your software the incredibly rare conicidences still happen and break your code which is rock-solid unless one of those bizarre corner cases hits it and brings it down. Hooray for sufficient test cases and those hard-working underappreciated heros who write them.