Тёмный

Delete a Binary Tree (all nodes in the binary tree) 

Vivekanand Khyade - Algorithm Every Day
Подписаться 115 тыс.
Просмотров 29 тыс.
50% 1

Опубликовано:

 

20 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 29   
@AddieInGermany
@AddieInGermany 7 лет назад
Sir i've been following you for a very long time now. And you're great i wonder why you have just 1.5k subscribers. You deserve the world. Thanks!
@ankan1994
@ankan1994 7 лет назад
hllo sir.....ur videos are really helpful as they provide simpler and effective technique than the book and other sources.....sir pls pls give videos on linked lists ...like sorting a list,remove middle element of a list, delete first n nodes of list and append them in the last positions,union and intersection of linked lists....all ur followers will be highly obliged
@ankan1994
@ankan1994 7 лет назад
also pointer concept in c
@vivekanandkhyade
@vivekanandkhyade 7 лет назад
Hii Ankan, sure I will add all these topics....thanks for helping me to do better...thanks a lot.
@sergeyderevyanko4457
@sergeyderevyanko4457 6 лет назад
This is impractical algorithm, because it would exhaust the stack for large deep trees. There are at least 2 ways to delete the whole tree without using stack or allocating extra memory.
@franciscodecastro9520
@franciscodecastro9520 3 года назад
how?
@RebeccaLee-l4s
@RebeccaLee-l4s 11 месяцев назад
Thank you so much, sir. You have saved my life.
@krishnendudutta1465
@krishnendudutta1465 4 года назад
In java, root=null and garbage collection does the rest.
@naveenbonthu
@naveenbonthu 7 лет назад
How can you delete a binary tree with a Large number of nodes without over flowing stack ? Please do a video on this.
@vivekanandkhyade
@vivekanandkhyade 7 лет назад
Yes naveen...!
@milimishra6447
@milimishra6447 7 лет назад
sir..keep adding more videoos...they r really gud
@vivekanandkhyade
@vivekanandkhyade 7 лет назад
Thanks MILI..!
@chandhrasekharpappu679
@chandhrasekharpappu679 6 лет назад
Explain also insert the node
@franciscodecastro9520
@franciscodecastro9520 3 года назад
Nice video lord!!
@tapanjeetroy8266
@tapanjeetroy8266 5 лет назад
Thanks for uploading it
@ismaellayth
@ismaellayth 5 лет назад
Thank you
@manavswami4804
@manavswami4804 7 лет назад
sir please make video on "Rearrange a Linked List in Zig-Zag fashion (O(n))" plz sir
@vivekanandkhyade
@vivekanandkhyade 7 лет назад
very soon manav...!
@ishan_kumar
@ishan_kumar 5 лет назад
Post complete question bro
@syedmuhammadabdullah2920
@syedmuhammadabdullah2920 5 месяцев назад
i dont think that this is right
@samyakjain3397
@samyakjain3397 7 лет назад
sir can u pls made program on sparse matrix
@vivekanandkhyade
@vivekanandkhyade 7 лет назад
Yes Sam...very sooon..!
@samyakjain3397
@samyakjain3397 7 лет назад
And sir keep on uploading your videos so that it benefit students like me
@monirarad1683
@monirarad1683 7 лет назад
you're the best
@vivekanandkhyade
@vivekanandkhyade 7 лет назад
Thanks Mahabad..!
@salmanshah996
@salmanshah996 7 лет назад
your smile is cute (y)
@willturner3440
@willturner3440 4 года назад
×100
@ahmedessam430
@ahmedessam430 3 года назад
agree
@aryamangupta3919
@aryamangupta3919 3 года назад
An amazing way to delete any tree, using c++ without any traversal, the language will do the work for us. We can use destructor functionality. #include using namespace std; template class Tree { public: Tree* left; Tree* right; T value; Tree(T value): value(value){ } ~Tree(){ if(left){ delete left, coutleft = new Tree(10); root->right->right = new Tree(10); delete root; return 0; } and there you go no need any traversal at all :__.
Далее
1 Subscriber = 1 Penny
00:17
Просмотров 46 млн
Binary Search Tree: Deletion Overview
3:07
Просмотров 45 тыс.
Viral Video of a Man's Crazy Job Interview
16:02
Просмотров 1,4 млн
Bottom view of a Binary Tree Algorithm
12:28
Просмотров 36 тыс.
Introduction to Binary Search
16:25
Просмотров 153 тыс.
Delete a node from Binary Search Tree
18:27
Просмотров 1,1 млн