Sir, I m facing problem in 1547 leetcode problem minimum cost to sut a stick.
this is my code:
All sample cases are passing but having problem in following case:
36
[13,17,15,18,3,22,27,6,35,7,11,28,26,20,4,5,21,10,8]
my output:156
expected: 150
basically, i m trying to join the stick after it has been cut from all its cuts length.
plss check…