Oct-02-2020, 06:43 AM
Yeah,I know,I thought about that solution too at first. The problem lies in the fact that the number of sticks can be bigger,so if we had e.g. 10 sticks and list with length=20, it would take a program forever to complete(maybe I’m wrong). But thank you for your answer and time, anyway!!!)))