You are viewing a single comment's thread. Return to all comments →
Python 3:
def breakingRecords(scores): min_s = max_s = 0 min_value = max_value = scores[0] for i in scores: if (i < min_value): min_value = i min_s = min_s + 1 if (i > max_value): max_value = i max_s = max_s + 1 return [max_s, min_s]
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 →
Python 3: