You are viewing a single comment's thread. Return to all comments →
Thanks, I cleared all the test cases! Takeaways from my solution:
I highly recommend to anyone not quite understanding, think through the case
5 2 1 2 1 2 4
The expected answer is 3. I was getting 4 with my initial approach. Good luck!
Seems like cookies are disabled on this browser, please enable them to open this website
Count Triplets
You are viewing a single comment's thread. Return to all comments →
Thanks, I cleared all the test cases! Takeaways from my solution:
I highly recommend to anyone not quite understanding, think through the case
The expected answer is 3. I was getting 4 with my initial approach. Good luck!