You are viewing a single comment's thread. Return to all comments →
Nice! I thought my Python3 code was short, but you managed to get it in one line. Here's my code:
most = max(set(a), key = a.count) print(sum(i != most for i in a))
Seems like cookies are disabled on this browser, please enable them to open this website
Equalize the Array
You are viewing a single comment's thread. Return to all comments →
Nice! I thought my Python3 code was short, but you managed to get it in one line. Here's my code: