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.
defbreakingRecords(scores):# Write your code heremin_point,max_point=scores[0],scores[0]num_broken_records=[0,0]rest_scores=scores[1:]foriinrest_scores:ifi>max_point:num_broken_records[0]+=1max_point=ielifi<min_point:num_broken_records[1]+=1min_point=ireturn(num_broken_records[0],num_broken_records[1])
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 →