- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
Cousins in Binary Tree II | LeetCode 2641 in java | top DSA interview question | Must do Binary Tree
Question Link:- https://leetcode.com/problems/cousins-in-binary-tree-ii/description/
Cousins in Binary Tree II
2641. Cousins in Binary Tree II
leetcode daily problem today
leetcode daily problem today
daily leetcode problem today
daily leetcode problem today
daily leetcode problem today
leetcode daily problem today
leetcode daily problem today
daily leetcode problem today
daily leetcode problem today
daily leetcode problem today
today leetcode daily problem
today leetcode daily problem
today leetcode daily problem
Cousins in Binary Tree II
2641. Cousins in Binary Tree II
Given the root of a binary tree, replace the value of each node in the tree with the sum of all its cousins' values.
Two nodes of a binary tree are cousins if they have the same depth with different parents. Return the root of the modified tree.
Note that the depth of a node is the number of edges in the path from the root node to it.
my approach is simple i am using a Queue of Tree Nodes and keeping a variable for previous sum, initially i am adding the root node and previous vale as the root value.
after this we will keep on modifying every node value as the sum of its sibling nodes. and then we will keep on pop out the Node from list for the size taken times and push the children.
at every node we will keep track the sum of all the left right sum and assign this to previous variable for next level.
Usage Of Counting sort :- https://youtu.be/rszLo7LgwvE?si=Ly1u_QdBn9waMW0Q
DSA Algorithms :-
https://youtu.be/jF3bcJx5ppg?si=5ofIAuMKjvBDkrJ6
Design HLD:-
https://youtu.be/Q3Jfx0RJzrw
#coding #helpajobseeker #easyrecipes #leetcode #leetcodequestionandanswers #leetcodesolution #leetcodedailychallenge #leetcodequestions #leetcodechallenge #hindi #india #hindiexplanation #hindiexplained #easyexplaination #interview #interviewtips
#interviewpreparation #interview_ds_algo #hinglish
Видео Cousins in Binary Tree II | LeetCode 2641 in java | top DSA interview question | Must do Binary Tree канала Code Thoughts
Cousins in Binary Tree II
2641. Cousins in Binary Tree II
leetcode daily problem today
leetcode daily problem today
daily leetcode problem today
daily leetcode problem today
daily leetcode problem today
leetcode daily problem today
leetcode daily problem today
daily leetcode problem today
daily leetcode problem today
daily leetcode problem today
today leetcode daily problem
today leetcode daily problem
today leetcode daily problem
Cousins in Binary Tree II
2641. Cousins in Binary Tree II
Given the root of a binary tree, replace the value of each node in the tree with the sum of all its cousins' values.
Two nodes of a binary tree are cousins if they have the same depth with different parents. Return the root of the modified tree.
Note that the depth of a node is the number of edges in the path from the root node to it.
my approach is simple i am using a Queue of Tree Nodes and keeping a variable for previous sum, initially i am adding the root node and previous vale as the root value.
after this we will keep on modifying every node value as the sum of its sibling nodes. and then we will keep on pop out the Node from list for the size taken times and push the children.
at every node we will keep track the sum of all the left right sum and assign this to previous variable for next level.
Usage Of Counting sort :- https://youtu.be/rszLo7LgwvE?si=Ly1u_QdBn9waMW0Q
DSA Algorithms :-
https://youtu.be/jF3bcJx5ppg?si=5ofIAuMKjvBDkrJ6
Design HLD:-
https://youtu.be/Q3Jfx0RJzrw
#coding #helpajobseeker #easyrecipes #leetcode #leetcodequestionandanswers #leetcodesolution #leetcodedailychallenge #leetcodequestions #leetcodechallenge #hindi #india #hindiexplanation #hindiexplained #easyexplaination #interview #interviewtips
#interviewpreparation #interview_ds_algo #hinglish
Видео Cousins in Binary Tree II | LeetCode 2641 in java | top DSA interview question | Must do Binary Tree канала Code Thoughts
Cousins in Binary Tree II Leetcode 2641 in Java 2641. Cousins in Binary Tree II how to master DSA top 20 Google interview questions Must DO TREE DSA Leetcode top LinkedList problems top 20 Microsoft interview questions top 20 Amazon interview questions top 20 Uber interview questions how to become expert in DSA love babbar dsa Apna college must do questions for MAANG Binary Tree data structure algorithms how to master Tree DSA daily leetcode problem today TOP DS
Комментарии отсутствуют
Информация о видео
23 октября 2024 г. 10:02:41
00:18:57
Другие видео канала




















