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.
Amazing! I had to take some time to understand how it works and then I couldn't help but smile. I don't know very well if it is the most efficient solution from a point of view of algorithmic complexity but it is certainly a nice solution
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Compare the Triplets
You are viewing a single comment's thread. Return to all comments →
Amazing! I had to take some time to understand how it works and then I couldn't help but smile. I don't know very well if it is the most efficient solution from a point of view of algorithmic complexity but it is certainly a nice solution