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.
I used various if else to check for -negative condition. My logic was giving highest positve number and lowest negative number. but if you put all the results in array and then sort you will get your answer, as mentioned by abhi007tyagi. Thanks
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Day 11: 2D Arrays
You are viewing a single comment's thread. Return to all comments →
I used various if else to check for -negative condition. My logic was giving highest positve number and lowest negative number. but if you put all the results in array and then sort you will get your answer, as mentioned by abhi007tyagi. Thanks