Skip to content

Wrong Output #3

@shashankgpt98

Description

@shashankgpt98

Question: counting number of subtrees with given sum [https://github.com/saidrishya/geeksforgeeks-solutions/blob/master/counting%20number%20of%20subtrees%20with%20given%20sum]
Your code will not work for the below test case
4 0 1 N 2 0 -2 N -4 -1 -3 N 0 -3
-5

its correct answer is 3
and your code is giving 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions