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.
for i in scores:
if i < low:
l_count+=1
low = i
elif i > high:
h_count+=1
high= i
else:
continue
arr = []
arr.append(h_count)
arr.append(l_count)
return arr
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 →
def breakingRecords(scores): # import numpy as np high, low, h_count, l_count = scores[0], scores[0], 0,0