You are viewing a single comment's thread. Return to all comments →
**Simple and Short Python Solution **
def cutTheSticks(arr): c = [] while arr: c.append(len(arr)) m = min(arr) arr = [i for i in arr if i != m ] return c
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 →
**Simple and Short Python Solution **