Binary Lifting (Kth Ancestor of a Tree Node)
Tutorial on binary lifting (also called jump pointers). We find k-th ancestor of a node in O(log(N)). Problem link https://leetcode.com/problems/kth-ancestor-of-a-tree-node/
Final code https://github.com/Errichto/youtube/blob/master/leetcode/1483-kth-ancestor.cpp
Coding live streams - https://www.twitch.tv/errichto
FAQ - https://github.com/Errichto/youtube/wiki/FAQ
Subscribe for more educational videos on algorithms, coding interviews and competitive programming.
Видео Binary Lifting (Kth Ancestor of a Tree Node) канала Errichto Algorithms
Final code https://github.com/Errichto/youtube/blob/master/leetcode/1483-kth-ancestor.cpp
Coding live streams - https://www.twitch.tv/errichto
FAQ - https://github.com/Errichto/youtube/wiki/FAQ
Subscribe for more educational videos on algorithms, coding interviews and competitive programming.
Видео Binary Lifting (Kth Ancestor of a Tree Node) канала Errichto Algorithms
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Codeforces problem - Two Arrays and Sum of FunctionsLeetCode Challenge Day 6 - Anagrams and Canonical FormString in Binary Tree - LeetCode Day 30 | THE ENDC++ Caesar Cipher (ASCII Codes) | Algo for BeginnersHARD Constructive Problem E | Google Code Jam 2020 Qual Round(HARD?) LeetCode Day 9 - Backpace String Compare in O(1) SpaceLeetCode Day 8 - Middle of a Linked List (Two Pointers)Programming Competitions (Codeforces, Code Jam, ...)Ones and Zeros Multiple (SPOJ / Polish Olympiad)Prefix Sums - Problems, Code in C++ & PythonGoogle Code Jam 2020 R2 - Screencast & CommentaryCodechef problem - Partition into PermutationsLeetCode Dynamic Programming Problems | Stream HighlightsCodeforces problem NEKO's Maze Game (div1A)LeetCode Day 10 - Min Stack C++ ImplementationStream #1 - Codeforces round 283, part 1/2C++ Bitsets in Competitive ProgrammingCoding Interview Question - Find Peak (LeetCode), two solutionsLeetCode Biweekly Contest 11 screencast with commentaryLeetCode Challenge Day 7 - Too Easy? Harder Version!