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.
Breaking the Records
Breaking the Records
Sort by
recency
|
2196 Discussions
|
Please Login in order to post a comment
Python min_con, max_con = 0, 0 least_scr, most_scr = scores[0], scores[0] for i in scores: if i < least_scr: min_con += 1 least_scr = i elif i > most_scr : max_con += 1 most_scr = i else: continue
Here is my c++ solution, you can watch the explanation here : https://youtu.be/vnovwmHPVXE
JavaScript Solution:
With Reduce in JS/Javascript:-
En python