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.
thanks mate. the problem with my code was initialising min and your idea of init with upper bound totally solved it since my min was taking the value of 0 during subsequent iterations. cheers mate!!
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Cut the sticks
You are viewing a single comment's thread. Return to all comments →
thanks mate. the problem with my code was initialising min and your idea of init with upper bound totally solved it since my min was taking the value of 0 during subsequent iterations. cheers mate!!