You are viewing a single comment's thread. Return to all comments →
Your last for loop isn't needed. You can move Math.max to the previous for loop.
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
Array Manipulation
You are viewing a single comment's thread. Return to all comments →
Your last for loop isn't needed. You can move Math.max to the previous for loop.