You are viewing a single comment's thread. Return to all comments →
My code in python
def cutTheSticks(arr): out = [] while arr: out.append(len(arr)) m = min(arr) arr = [x - m for x in arr if x > m] return out
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 →
My code in python