You are viewing a single comment's thread. Return to all comments →
My Python 3 submission:
def breakingRecords(scores): rlow = scores[0] rhigh = scores[0] lowBreaks = 0 highBreaks = 0 for x in scores: if x < rlow: rlow = x lowBreaks += 1 elif x > rhigh: rhigh = x highBreaks += 1 return str(highBreaks)+str(lowBreaks)
It worked for all except the Testcases 5-8. What might be wrong?
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 →
My Python 3 submission:
It worked for all except the Testcases 5-8. What might be wrong?