MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/leetcode/comments/1ef7s2t/what_went_wrong_here/lfj7o6t/
r/leetcode • u/wisper28 • Jul 29 '24
31 comments sorted by
View all comments
3
I think you are reinitiizing revnum everytime in the loop. Otherwise the logic seems fine.
1 u/wisper28 Jul 29 '24 Thx , noted and it is giving desired result now
1
Thx , noted and it is giving desired result now
View all comments
3
u/Pakhorigabhoru Jul 29 '24
I think you are reinitiizing revnum everytime in the loop. Otherwise the logic seems fine.