1361. Validate Binary Tree Nodes (Leetcode Medium)

preview_player
Показать описание
Larry solves and analyzes this Leetcode problem as both an interviewer and an interviewee. This is a live recording of a real engineer solving a problem live - no cuts or edits!

#leetcode #coding #programming
Рекомендации по теме
Комментарии
Автор

also all(seen) is a nice trick! I didn't know about that built in method

lostin-code
Автор

the question wording could have been better, I wasted time a bunch of time assuming the root was always 0

lostin-code
join shbcf.ru