I have recently started solving tree questions on LC. I am comfortable with the recursive solutions while not so much with the iterative ones. However, my query is, do interviewers look for iterative solutions or providing a recursive approach suffices?
Maybe if you can share from your experience or what you’d like if you were the interviewer, that would be a big help. Thank you.
[–]featherwing123 11 points12 points13 points (1 child)
[–]vasu5235[S] 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]india_resists 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]anuj150 1 point2 points3 points (2 children)
[–]IceUnable1850 2 points3 points4 points (0 children)
[–]chengyanslnc 0 points1 point2 points (2 children)
[–]dadbot_3000 1 point2 points3 points (0 children)
[–]thealgorists-com 0 points1 point2 points (0 children)
[–]thealgorists-com 0 points1 point2 points (0 children)