I used a recursive function to check whether the chosen sum equals to the sum of individual segments.The pretests passed successfully but it gave wrong answer on test 17 after system testing. Here is a link to my submission. Can someone please tell me what mistake am I doing. I am not that expert in programming and need some help. I am initially removing all trailing and leading zeroes from string as they don’t matter.
Never mind found my stupid mistake. That’s depressing