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 code is displayed in a very messy way on Hackerrank Comment threads, but I kind of get what you're trying to do. Ok so here's the link to the C++ Code I wrote for you. It Passes all test Cases and max time is 0.11s. Hope you'll be able to figure out where you went wrong :)
Pairs
You are viewing a single comment's thread. Return to all comments →
The code is displayed in a very messy way on Hackerrank Comment threads, but I kind of get what you're trying to do. Ok so here's the link to the C++ Code I wrote for you. It Passes all test Cases and max time is 0.11s. Hope you'll be able to figure out where you went wrong :)
https://github.com/duaraghav8/Hackerrank-Problems/blob/master/pairs.cpp