• + 0 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