Replace with Sum of greater node : binary trees problem (RUN-ERROR)


i am getting run-error otherwise
code is working well for sample cases.

@mandeepchohan96
ur function solver wasn’t right
check your corrected code:

2 Likes

thanks mam, i got it.