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.
// Write your code here
var record_max = scores[0];
var record_min = scores[0];
var min = 0;
var max = 0
for(var i=1; irecord_max){
max++;
record_max = scores[i];
} else if(scores[i]
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Breaking the Records
You are viewing a single comment's thread. Return to all comments →
// Write your code here var record_max = scores[0]; var record_min = scores[0]; var min = 0; var max = 0 for(var i=1; irecord_max){ max++; record_max = scores[i]; } else if(scores[i]