You are viewing a single comment's thread. Return to all comments →
def cutTheSticks(arr): arr.sort() result = [len(arr)] for i in range(1, len(arr)): if arr[i] != arr[i - 1]: result.append(len(arr) - i) return result
Seems like cookies are disabled on this browser, please enable them to open this website
Cut the sticks
You are viewing a single comment's thread. Return to all comments →