Nodes having 'K' leaves in its SubTree Algorithm

  Рет қаралды 6,993

Vivekanand Khyade - Algorithm Every Day

Vivekanand Khyade - Algorithm Every Day

Күн бұрын

Find nodes having K leaves in its SubTree.

Пікірлер: 9
@dhruv2014
@dhruv2014 3 жыл бұрын
Nice video 🔥
@shrijanaryal4923
@shrijanaryal4923 6 жыл бұрын
what if the tree is null ? i think you have to check if thats the case first and return 0 if thats true.
@ankan1994
@ankan1994 7 жыл бұрын
sir, can this code be optimized as if a node which is a subtree of a tree has already total leaf count>k, then the root means the node at its upper level also have k>2..no need to check it through recursion....for eg- if node c has k>2 which is subtree of a,then its obvious that its root a has k>2...so whats the point to check it?
@bhupalibaishya2136
@bhupalibaishya2136 6 жыл бұрын
sir string permutation backtracking pe video banayiye na
@shrijanaryal4923
@shrijanaryal4923 6 жыл бұрын
kzbin.info/www/bejne/bWnXkKx-qqyaY5I watch this! You will never forget how its done once you watch this video.
@ankitlohiya76
@ankitlohiya76 7 жыл бұрын
this vdeo is super awesome....
@vivekanandkhyade
@vivekanandkhyade 7 жыл бұрын
Thanks Ankit.!
@barahah9871
@barahah9871 7 жыл бұрын
can u be bit faster ........u r like a cammel
@srinidhiii
@srinidhiii 7 жыл бұрын
If u want you adjust the speed of you video. He is explaining very well indeed!!
Lowest common ancestor of two nodes in Binary Tree Algorithm
13:49
Vivekanand Khyade - Algorithm Every Day
Рет қаралды 57 М.
Print Root to Leaf Path with Given sum(Print all K-Sum paths) in a given Binary Tree
14:56
Vivekanand Khyade - Algorithm Every Day
Рет қаралды 31 М.
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
Spiral (zig-zag) level order traversal of a binary tree
14:12
Vivekanand Khyade - Algorithm Every Day
Рет қаралды 34 М.
Vertical Order Traversal of a Binary tree (Algorithm)
18:35
Vivekanand Khyade - Algorithm Every Day
Рет қаралды 72 М.
Top Data Engineering & AI Trends to Watch in 2025
13:28
Print diagonal elements in binary tree(code/Algorithm/Program)
25:19
Vivekanand Khyade - Algorithm Every Day
Рет қаралды 20 М.
C can do this too and it's faster than Python
2:09:48
Tsoding Daily
Рет қаралды 5 М.
What the Heck is Reactance and Why is it So Weird?!?
19:33
Electrician U
Рет қаралды 864
Gemini 2.0 Pro
17:41
Prompt Engineering
Рет қаралды 37 М.
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН