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.
Happy Ladybugs
Happy Ladybugs
Sort by
recency
|
517 Discussions
|
Please Login in order to post a comment
My Java Solution
Here is my c++ solution, you can watch the explanation here : https://youtu.be/khDcPEl6to0
Java soluation using HashMap:
from collections import Counter
def happyLadybugs(b):
The solution is a bit tedious due to the number of cases to account for. Not sure I would call this one "easy".