You are viewing a single comment's thread. Return to all comments →
def breakingRecords(scores): minScore = maxScore = scores[0] minCount = maxCount = 0 for s in range(1, len(scores)): if scores[s] > maxScore: maxScore = scores[s] maxCount += 1 elif scores[s] < minScore: minScore = scores[s] minCount += 1 return [maxCount, minCount]
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 →