Back to Browse

BINARY TREE ZIG ZAG LEVEL ORDER TRAVERSAL [PYTHON]

1.7K views
Feb 19, 2022
10:57

In this video we are solving Leetcode problem # 103: Binary Tree Zig Zag Level Order Traversal. This problem is very similar to the leetcode problem where we are performing a standard level order traversal except with a little twist. If you haven't watched that video already, go ahead and give it a view because I break down the algorithm line by line and explain the template for Level Order traversals that you'll be using across so many Leetcode problems on your interview prep journey. In this problem we make a small adjustment to account for the zig zag but the code is very nearly a carbon copy of a standard level order traversal.

Download

1 formats

Video Formats

360pmp413.6 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

BINARY TREE ZIG ZAG LEVEL ORDER TRAVERSAL [PYTHON] | NatokHD