saritapatel8770 / Leetcode-solutions

7 stars 46 forks source link

reverse odd binary trees #52

Closed vatsal9117 closed 1 year ago

vatsal9117 commented 1 year ago

here space complexity of the algorithm is O(h) and time complexity is O(n)