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.
My idea is that under the following 2 cases, print NO
there are no underscore in the string, and there are unhappy bees in the string. (since there are no space to move them around, its not possible to make them happy)
when there exists one single bee of any kind. (in this case, there is no second bee to match it, even if you have space to move it around, its gonna be unhappy)
in otherwords, as long as there are space to move bees around and all bees have a partner to pair with, its gonna be possible to group them together
Happy Ladybugs
You are viewing a single comment's thread. Return to all comments →
My idea is that under the following 2 cases, print NO
in otherwords, as long as there are space to move bees around and all bees have a partner to pair with, its gonna be possible to group them together
solution in python