Binary Tree in Data Structures | All about Binary Tree | DSA Course

Binary Tree in Data Structures | All about Binary Tree | DSA Course

Apna College

2 года назад

1,459,514 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@manojshukla8627
@manojshukla8627 - 27.01.2024 18:44

Hi Shraddha, I've a question here regarding 'count nodes' problem. Counting number of nodes using recursion and level order (using queue) both runs in O(n) time but then why in actual level order takes less time then recursion when submitting the problem be it leetcode, codechef or any other coding platform?

For eg - Tree -> [1,2,3,4,5,6]
Time with Recursion - 28 ms and time with level order - 16 ms

Ответить
@vishaltomar925
@vishaltomar925 - 26.01.2024 14:23

sabhi mere comment ko like ko

Ответить
@shadowdust3548
@shadowdust3548 - 25.01.2024 17:20

Please add timestamps so that people can navigate easily

Ответить
@jayanth8048
@jayanth8048 - 24.01.2024 08:59

Can I watch this for C data structures also ??

Ответить
@yogeshyeshwanth8938
@yogeshyeshwanth8938 - 23.01.2024 05:27

Mam can u please explain in english we tamilnadu students can understand.please mam🥺

Ответить
@user-of5zv8yi2m
@user-of5zv8yi2m - 20.01.2024 07:37

shraddha di plz yaar yehi course c programming ke saath kaise karna ik video bano di yaar plzzz......

Ответить
@smitkore3404
@smitkore3404 - 15.01.2024 14:10

in second approch of calculating diameter of tree i think you have consider a wrong height of last node 4

Ответить
@technologiesmotivationd7754
@technologiesmotivationd7754 - 14.01.2024 15:57

Hi mama
My small request is can you make video on all leetcode problem in java using DSA with full explanation
please mam

Ответить
@vijayshinde5682
@vijayshinde5682 - 10.01.2024 20:32

Mam is it compulsory to work on live projects before any internship or interview

Ответить
@CRICTHAT11
@CRICTHAT11 - 29.12.2023 13:59

In diameter ques diam3=height(root.left)+height(root.right); bcoz we are counting edges in this ques and height basically gives us no. of nodes so we don't need to add 1 to it.

Ответить
@shirishgoyal7379
@shirishgoyal7379 - 29.12.2023 11:58

in the buildTree function what will be the recursion exit condition?
I am getting ArrayIndexOutOfBoundException

Ответить
@user-ex9lc7nt1s
@user-ex9lc7nt1s - 22.12.2023 13:02

Mam ik PHP ki vedio bna do or ik frame work add kar dena

Ответить
@user-ef5lz1gf1l
@user-ef5lz1gf1l - 18.12.2023 17:37

you didn't told the kth level for which we should tell the right answer

Ответить
@prathameshkadu9420
@prathameshkadu9420 - 16.12.2023 10:28

If possible, please try to explain the code using Dry Run because where the recursion comes it gets difficult to understand the flow. Also, do add the explanation topic (definition and example) and diagram in Notes. So that students whenever visit the notes, they would not need to go to video for explanation. Rest, All is Best..!!!

Ответить
@InsideTheMovies0.
@InsideTheMovies0. - 19.11.2023 19:48

tree main root node ka level 0 nhi hota hai kaya ???

Ответить
@jaggadaku9357
@jaggadaku9357 - 09.11.2023 19:19

Didi if within post order there are doesn't present any null then what are the process

Ответить
@hannanhub1717
@hannanhub1717 - 18.10.2023 22:00

Thanks

Ответить
@pranjalchand6792
@pranjalchand6792 - 16.10.2023 09:26

Ответить
@sparetronyt424
@sparetronyt424 - 13.10.2023 06:28

airport ke paas video bana rahe ho?

Ответить
@FK_EDTS
@FK_EDTS - 11.10.2023 10:34

Madam, kaash mai aapke haath me pakda hua pen hota😫

Ответить
@rohanraj8418
@rohanraj8418 - 04.10.2023 21:56

Didi aapne title pe kyu nhi likha ke ya java ka code pe hai main kitne focus ke sath dekh rha tha.
main tab se python se related tree data structure ke video dhund rha hu.
Mera complete 15 min waste ho gya..
Koi nhi at least fundamental to smjh aa he gya h
anyway thank you for this amazing tutorial
Or han main phir aaunga is video mein after learning java programming.
or gussa mat hona like kiye bina nhi jaunga.

Ответить
@ashishbm3565
@ashishbm3565 - 25.09.2023 18:41

Diameter of nodes are defined in terms of edges not nodes. So output should be 4 mam. I just checked leetcode.

Ответить
@faizan.787
@faizan.787 - 25.09.2023 10:33

thanks didi

Ответить
@siddhantvishnu4309
@siddhantvishnu4309 - 17.09.2023 14:48

Thanks for the lecture!! was able to solve the homework question.

Ответить
@prakashsharma7010
@prakashsharma7010 - 14.09.2023 20:46

The build tree function is wrong here as it's not building the binary tree but just going a left order tree always, it will never append to right edge as per the code. Please correct it. Also, you will need a queue in order to build a tree where leaves are filled in level order.

Ответить
@rishusingh1995
@rishusingh1995 - 09.09.2023 23:53

aapka jlwa hai didi

Ответить
@daya_ashiquiwala_status
@daya_ashiquiwala_status - 05.09.2023 22:23

Aap Explain bahut acche se karti hai

Ответить
@AnkitSingh-pq7oo
@AnkitSingh-pq7oo - 03.09.2023 14:58

Mam aap is lecture ka last wala code kaha run ki hai

Ответить
@amansharma2957
@amansharma2957 - 25.08.2023 18:16

How can we make objects for static classes?

Ответить
@riyachopra2644
@riyachopra2644 - 24.08.2023 06:24

Mam jb mai code likhte h to usko forward kaise kare share nhi hota h code whatsapp pr

Ответить
@misbahmirza1277
@misbahmirza1277 - 03.08.2023 17:19

Mam your teaching skill is fabulous... The way you teached us... It's really Appreciatable... Your hard works... Your skill... Your consistency.. Your taughts all are fabulous.. Really really big fan of yours..may God bless you shruddha mam....

Ответить
@filmbuzz9419
@filmbuzz9419 - 02.08.2023 08:27

Sum of Node not correct answer 😕 anyone has understand

Ответить
@chethanvenkataramaiah6940
@chethanvenkataramaiah6940 - 13.07.2023 10:51

Thank u for this video , really appreciate the effort. But can u please provide the visualization of what happens in the call stack when the recursive call happens in pre-order and other traversals happens.? I didnt really understand what exactly happens when return ; is executed

Ответить
@SurajSingh-ld5xv
@SurajSingh-ld5xv - 13.07.2023 08:38

Didi apne level 4 ka depth 4 likha ha par hona toh 3 chahiye na please check if i am wrong or right.

Ответить
@djpkfm242ft.2
@djpkfm242ft.2 - 11.07.2023 20:12

we need DSA full course for 2nd year btech

Ответить
@LOL-jx4cm
@LOL-jx4cm - 06.07.2023 11:25

what if your index is greater then your lastuseindex

Ответить
@studentofklnce472
@studentofklnce472 - 18.06.2023 09:22

Mam please add captions

Ответить
@Empezar2023
@Empezar2023 - 04.06.2023 16:42

Pls check Height of a Tree once again it should be maximum level+1

Ответить