1609. Even Odd Tree (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
Рекомендации по теме
Комментарии
Автор

My solution worked for everything except the input of level 0: [2]
level 1: [12, 8]
level 2: [5, 9]
level 3: [18, 16]
and i still can't see why. Apparently this should be false but it looks like it should be true to me and my solution returned true so I never got past this question.

If anyone can see what I am missing and let me know that would be great..

Nathan-srnv