Coding Interview | Binary Tree Traversal #shorts #datastructures #binarytree #codinginterview

Coding Interview | Binary Tree Traversal #shorts #datastructures #binarytree #codinginterview

Machine-readable: Markdown · JSON API · Site index

Поделиться Telegram VK Бот
Транскрипт Скачать .md
Анализ с AI

Оглавление (1 сегментов)

Segment 1 (00:00 - 00:00)

in a pre-order traversal we visit the node we visit the left subtree we visit the right subtree do you see how it's called pre-order the N is the first visited do you see how it's pre before the left and right so for in order think of it as in so left sub tree visit the node and then visit the right subtree so do you see how it's in the middle that's how you remember in order traversal and then we have our post order traversal we go left subtree we go right sub tree we visit the node so do you see how it's post it's after the left and right so the left and right stay in sequence left and right say in sequence but the S the prefix tells us when we visit the node before the subtrees the sub trees will be left right but when do we visit the node that's what the prefix tells us

Другие видео автора — Back To Back SWE

Ctrl+V

Экстракт Знаний в Telegram

Экстракты и дистилляты из лучших YouTube-каналов — сразу после публикации.

Подписаться

Дайджест Экстрактов

Лучшие методички за неделю — каждый понедельник