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.
Count Triplets
Count Triplets
Sort by
recency
|
815 Discussions
|
Please Login in order to post a comment
Cleanest python solution:
Can be made more succint using a key transform and one dictionary:
This one was a doozy! Took me way longer then I'd care to admit. JS solution (forgive my nesting 😅):
Why is this failing hidden test case 6 :(
I came up with idea of moving forward and keeping a track of singles and doubles that have happened. This is passing all test cases except test case 6 :(
can someone please help me understand the problem with my code??
Recursive solution: