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.
1) You don't need to increase time complexity by sorting the array afterwards, you should get the ongoing max value.
2) You don't need to increase space complexity by creating a int array.
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 →
1) You don't need to increase time complexity by sorting the array afterwards, you should get the ongoing max value.
2) You don't need to increase space complexity by creating a int array.