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 feel like such a failure. I kept beating myself up for over an hour on why this solution works when there were so many combinations left out and why everyone else was overlooking the problem.
Turns out DETAILS MATTER. Substring ========== CONTIGUOUS STRINGS lol. This would be a level hard problem if they didn't have to be contiguous.
I was looking at like abadea and looking at my mapping for ade thinking there is not 2 matches what, there are three!! Face palm moment.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Sherlock and Anagrams
You are viewing a single comment's thread. Return to all comments →
I feel like such a failure. I kept beating myself up for over an hour on why this solution works when there were so many combinations left out and why everyone else was overlooking the problem.
Turns out DETAILS MATTER. Substring ========== CONTIGUOUS STRINGS lol. This would be a level hard problem if they didn't have to be contiguous.
I was looking at like
abadea
and looking at my mapping forade
thinking there is not 2 matches what, there are three!! Face palm moment.