You are viewing a single comment's thread. Return to all comments →
python
def breakingRecords(scores): mini=scores[0] min_cnt=0 index=[] maxi=scores[0] max_cnt=0 for i in scores: if i <mini: min_cnt+=1 mini=i elif i>maxi: max_cnt+=1 maxi=i index.append(max_cnt) index.append(min_cnt) return index
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