Whole code is working fine but why sum_supply function not return correct value
💡-replace-with-sum-of-greater-nodes
dishant_rahangdale
(Dishant Rahangdale)
July 23, 2020, 9:59am
#1
vatsal38
(vatsal agarwal)
July 23, 2020, 10:10am
#2
@dishant_rahangdale
because in supply sum n is actually n-1 so put loop from 0 to <=n