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.
It looks like this does more looping than yours, but I think internally yours has to do the same things. And looking at both, it's pretty clear we could have used C and made it even cleaner...templates are overkill in this case.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Beautiful Pairs
You are viewing a single comment's thread. Return to all comments →
Using the (no spoilers) template is a good idea. Here's mine, using (no spoilers) instead.
https://www.hackerrank.com/challenges/beautiful-pairs/submissions/code/19452567
It looks like this does more looping than yours, but I think internally yours has to do the same things. And looking at both, it's pretty clear we could have used C and made it even cleaner...templates are overkill in this case.