You are viewing a single comment's thread. Return to all comments →
I figured out as long as there is one '_', and more than one count of same letters, the string is happy. I did few mistakes on edge cases though.
My solution is like:
O(n)
Seems like cookies are disabled on this browser, please enable them to open this website
Happy Ladybugs
You are viewing a single comment's thread. Return to all comments →
I figured out as long as there is one '_', and more than one count of same letters, the string is happy. I did few mistakes on edge cases though.
My solution is like:
O(n)