r/badcode • • Jun 19 '21

typescript Check if binary tree is balanced...

Post image
221 Upvotes

44 comments sorted by

View all comments

36

u/sohang-3112 Jun 19 '21

If this is bad code, then what is good code?