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.
What I am not getting is why do you pop off the stack only if i is less than the top ? I guess my problem is I don't understand what it means b minimum pair. I get how the code works now but still stuck on what minimum pair means. Does it mean two numbers that are closest in value?
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
AND xor OR
You are viewing a single comment's thread. Return to all comments →
What I am not getting is why do you pop off the stack only if i is less than the top ? I guess my problem is I don't understand what it means b minimum pair. I get how the code works now but still stuck on what minimum pair means. Does it mean two numbers that are closest in value?