One test case is not working. Please tell me what is the problem with my code.
Here is the link to my code-
Total SubTrees with given sum
this is giving wrong ans because
suppose string is
67 34 …
but you are considering only one digit of number 6 then space then 4 and so on
hence it will give you wrong ans
Correct way
extract tokens from string using strtok
and then build tree