Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Count Complete Tree Nodes | Leetcode

Автор: Techdose

Загружено: 2020-06-23

Просмотров: 41364

Описание:

This video explains a very important programming interview problem which is to count the number of nodes in a given complete binary tree.This problem seems to be very simple if we are allowed to solve in O(N) linear time by using simple recursion, inorder, preorder, postorder traversal techniques.But can we improve the time complexity to logarithmic time? In this video i have shown how we can improve the time complexity by using the property of complete binary tree.The time complexity of the efficient approach is O(logN * logN).I have explained the algorithm using proper examples and code is explained at the end of the video. CODE LINK is present below as usual. If you find any difficulty or have any query then do COMMENT below. PLEASE help our channel by SUBSCRIBING and LIKE our video if you found it helpful...CYA :)

=================================================================
INSTAGRAM:   / surya.pratap.k  
LinkedIn:   / surya-pratap-kahar-47bb01168  
WEBSITE: https://techdose.co.in/
=================================================================

CODE LINK: https://gist.github.com/SuryaPratapK/...
OTHER PROBLEMs:-
Search in a Binary Search Tree:    • Search in a Binary Search Tree | Leetcode ...  
Invert Binary Tree:    • Invert Binary Tree | Leetcode #226  
Cousins in a binary tree:    • Cousins in a binary tree | Leetcode #993  

Count Complete Tree Nodes | Leetcode

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

Удалить K цифр | Построить наименьшее число | Leetcode #402

Удалить K цифр | Построить наименьшее число | Leetcode #402

Count Complete Tree Nodes (LeetCode 222) | Complete tree examples | Recursive & Iterative

Count Complete Tree Nodes (LeetCode 222) | Complete tree examples | Recursive & Iterative

Longest Duplicate Substring | TRIE | Rolling Hash | Binary Search | Leetcode #1044

Longest Duplicate Substring | TRIE | Rolling Hash | Binary Search | Leetcode #1044

Word Search II | DFS + Map | DFS + TRIE | Leetcode #212

Word Search II | DFS + Map | DFS + TRIE | Leetcode #212

Понимание B-деревьев: структура данных, лежащая в основе современных баз данных

Понимание B-деревьев: структура данных, лежащая в основе современных баз данных

Самая сложная задача на самом сложном тесте

Самая сложная задача на самом сложном тесте

Largest Divisible Subset | Dynamic programming | Leetcode #368

Largest Divisible Subset | Dynamic programming | Leetcode #368

Алгоритмы и структуры данных ФУНДАМЕНТАЛЬНЫЙ КУРС от А до Я. Графы, деревья, хеш таблицы и тд

Алгоритмы и структуры данных ФУНДАМЕНТАЛЬНЫЙ КУРС от А до Я. Графы, деревья, хеш таблицы и тд

Непересекающееся множество | ОБЪЕДИНЕНИЕ и НАЙТИ

Непересекающееся множество | ОБЪЕДИНЕНИЕ и НАЙТИ

lofi hip hop radio 📚 beats to relax/study to

lofi hip hop radio 📚 beats to relax/study to

Range Sum Query - Mutable | Leetcode 307 | Segment tree construction and update

Range Sum Query - Mutable | Leetcode 307 | Segment tree construction and update

4 Hours Chopin for Studying, Concentration & Relaxation

4 Hours Chopin for Studying, Concentration & Relaxation

Coin Change 2 | Dynamic programming | Leetcode #518

Coin Change 2 | Dynamic programming | Leetcode #518

Из России в Европу по рельсам | Почему нам не хватает этих поездов (English subtitles)

Из России в Европу по рельсам | Почему нам не хватает этих поездов (English subtitles)

30 самых прекрасных классических произведений для души и сердца 🎵 Моцарт, Бах, Бетховен, Шопен

30 самых прекрасных классических произведений для души и сердца 🎵 Моцарт, Бах, Бетховен, Шопен

Lowest Common Ancestor of a binary tree | Leetcode #236

Lowest Common Ancestor of a binary tree | Leetcode #236

Binary Tree Algorithms for Technical Interviews - Full Course

Binary Tree Algorithms for Technical Interviews - Full Course

/𝐧𝐨 𝐬𝐭𝐚𝐫𝐟𝐚𝐥𝐥 | 80's Tokyo Funky Lofi Playlist 🎧 | Broadcasting Beyond | Relax & Chill & Study to

/𝐧𝐨 𝐬𝐭𝐚𝐫𝐟𝐚𝐥𝐥 | 80's Tokyo Funky Lofi Playlist 🎧 | Broadcasting Beyond | Relax & Chill & Study to

Implement Trie (Prefix Tree) - Leetcode 208

Implement Trie (Prefix Tree) - Leetcode 208

Word Ladder | Leetcode #127

Word Ladder | Leetcode #127

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]