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.
the reason why you need to consider a corner case is of the order of how you call your methods. you should:
1. increase count (if in map3)
2. check if value is in map2
3. add value*r to value map2
Cookie support is required to access HackerRank
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 →
the reason why you need to consider a corner case is of the order of how you call your methods. you should: 1. increase count (if in map3) 2. check if value is in map2 3. add value*r to value map2