You are viewing a single comment's thread. Return to all comments →
The issue is that in every iteration you are finding the max value in array and then slicing, this is a n^2 solution thats why
Seems like cookies are disabled on this browser, please enable them to open this website
An unexpected error occurred. Please try reloading the page. If problem persists, please contact support@hackerrank.com
Gaming Array
You are viewing a single comment's thread. Return to all comments →
The issue is that in every iteration you are finding the max value in array and then slicing, this is a n^2 solution thats why