Binary Tree Data Structure | Implementation of a Binary Tree | Java C++ | DSA-One Course #55

Поділитися
Вставка
  • Опубліковано 11 лис 2024

КОМЕНТАРІ • 331

  • @sohamdixit263
    @sohamdixit263 4 роки тому +58

    Keep it up! Thank you for spreading the knowledge
    Edit- I received this much likes for the first time, they arent for me. They are for @Anuj Bhaiya. Support every educator out there who is teaching latest industry required knowledge to us! and thats also for free :)

    • @sohamdixit263
      @sohamdixit263 4 роки тому +1

      Also. thanks bhaiya to hit like button for my comment :)

  • @1Bipul
    @1Bipul 4 роки тому +59

    Bro DS n Algorithm mai full series bana na thik hai ❤️😊😍❤️

  • @abhinavchauhan9947
    @abhinavchauhan9947 4 роки тому

    maine purani videos dekhi hae jisme linked list stack aaur baaki sab implement kiya hae node use karke and thode din phele hi tree bhi karra implement node use karke ..
    all thanks to you

  • @skjishanali8204
    @skjishanali8204 4 роки тому

    Bhaiya bht shukriya firse ds part start krne k liye ...Aapke jaisa ds koi smjha nhi shakta...shulriya for teaching us😊

  • @yashmishra8506
    @yashmishra8506 4 роки тому +3

    wow!! bhaiya aap difficult topics ko aasan bana dete ho thanks!!

  • @ShyamalDas-kd5vt
    @ShyamalDas-kd5vt 4 роки тому +69

    No one Literally one can teach us like anuj sir😍❤️

  • @nirmalendugoswami
    @nirmalendugoswami 4 роки тому +13

    Bhaiya I have watched the whole Python course for Class 12 that you made in apni kaksha channel...And honestly I am saying that it helped me to build a very strong concept in Python....And now I am very happy to see that you are back again to help us with a new channel....I have decided to do CSE and hope that this channel will help me a lot in future...Keep Growing 🔥🔥🔥 ...Love from Guwahati ❤❤

  • @dazai9015
    @dazai9015 3 роки тому +4

    You explain topics so nicely and what I like most is how you have a positive vibe with you, it just helps me keep the right vibe during this placement time in my college. Really appreciate your content!!!

  • @anilrajput7081
    @anilrajput7081 4 роки тому +2

    Bhaiyaa aap bht achaa pdaate ho ...
    Plzz is channel pe DS of Java vhii se continue kroo ...jhaa se aapne chodaa thaaa.....
    Bhaiyaaa plzzzzz....hmara bht #nuksaan ho jjayegaa...
    Who is agree with me ....

  • @aniket7512
    @aniket7512 3 роки тому +7

    Tree creation starts at 7:22
    Thank u Anuj Bhaiya!

    • @jayeshshimpi1332
      @jayeshshimpi1332 3 роки тому +1

      thank you 👍

    • @animgaming07
      @animgaming07 15 днів тому

      Brother, is this playlist enough for a beginner to understand trees well, because I was watching apna college lecture but did not understand the tree lecture at all

  • @soumikdutta7867
    @soumikdutta7867 4 роки тому +1

    Thank you bhaiya......bhot dino se wait karr raha thaa iss video ka... Finally mil gaya :-)

  • @shrutikumari6727
    @shrutikumari6727 3 роки тому +3

    No words can define the quality of knowledge you are sharing.I can just say thanks a lot!!!

  • @sarthakagarwal8329
    @sarthakagarwal8329 4 роки тому +2

    Ek to to dil hai kitni baar jeetoge, java course bana k he itna accha kaam kiaa,
    This channel is going to crash yt algorithm of views!
    Keep going! ❤️

  • @Iron_Man019
    @Iron_Man019 2 роки тому +1

    The best explaination for creating binary tree i have seen here 👍🔥

  • @engineerscodes
    @engineerscodes 3 роки тому

    Nice Video for Brushing Old topics

  • @ashishkumarnaik4255
    @ashishkumarnaik4255 3 роки тому +8

    bro ,i did not know about tree .Just spent 40 min with your videos and learnt a lot ,You are doing great
    lots of love buddy :)

  • @krishnaji6541
    @krishnaji6541 4 роки тому +2

    Thanks bhaiya for continuing the course🙏🙏

  • @nikhilshakya8901
    @nikhilshakya8901 4 роки тому +1

    Bahut achhi lagi video bhaiya or aage bhi data structure ki video daalte rehna

  • @ayushbhardwaj5925
    @ayushbhardwaj5925 4 роки тому +1

    Best explanation ......Rank 1 in UA-cam

  • @abhijeetjha1592
    @abhijeetjha1592 4 роки тому +15

    love your work : your java explaination was the best on entire internet . just please make videos on remaining algos and anything you feel that is important for us !!

  • @VanshikaRathoreCSAIML
    @VanshikaRathoreCSAIML Рік тому

    thank you so much most important playlist for dsa I found!!!!

  • @AmanKumar-ls9cu
    @AmanKumar-ls9cu 3 роки тому +19

    Worth the time for clearing the concepts ,Thank you so much for the efforts, Sir.
    (Suggestion : Time stamp distribution of topics ,would be more helpful. )

  • @anamikasinghrajput8732
    @anamikasinghrajput8732 4 роки тому +1

    Confusion clearing video ........thanks for video🙂

  • @moukthiksusarla1765
    @moukthiksusarla1765 4 роки тому +5

    Thank you bhaiyya😍😍😍🧡🧡 for continuing the course. We are forever indebted to you

  • @akashnarvaria3663
    @akashnarvaria3663 2 роки тому +1

    Thanks for this dsa course.... It's so helpful

  • @scitechplusexplorer2484
    @scitechplusexplorer2484 2 роки тому +2

    Recursive Leap of Faith is best part!!!!

  • @Surajkumar-ul9hs
    @Surajkumar-ul9hs 4 роки тому +4

    Please make a full course on complete data structures and algorithms. The way you explained the binary tree is really awesome. Keep going...👍

  • @hiteshsinghpawar8393
    @hiteshsinghpawar8393 Рік тому

    That's a wonderful and precisely explained. But in this case we need to know the tree structure in prior before building the tree. If we want to create tree dynamically then we can build tree using Queue. Remember in a tree we fill the left subtree first before right. So left is filled before right, so its like in our temp queue left will be queued before right. Thus when we dequeue from queue we know which node to fill first. Hence our build tree method will always return a working node The complete example is given below:
    package com.hitesh.dsa.binarytrees;
    public class LinkBasedBinaryTree {
    private Node root;
    public Node createTreeUsingQueue(String str, LinkedListBasedQueue queue, Node workingNode) {
    Node incomingNode = new Node(str);
    if (root == null) {
    root = incomingNode;
    return root;
    }
    if (workingNode == null) {
    workingNode = queue.dequeue();
    }
    if (workingNode.getLeftChild() == null) {
    workingNode.setLeftChild(incomingNode);
    return workingNode;
    } else if (workingNode.getRightChild() == null) {
    workingNode.setRightChild(incomingNode);
    return workingNode;
    } else {
    queue.enqueue(workingNode.getLeftChild());
    queue.enqueue(workingNode.getRightChild());
    return createTreeUsingQueue(str, queue, null);
    }
    }
    public static class Node {
    private Node leftChild;
    private Node rightChild;
    private String info;
    public Node(String info) {
    this.info = info;
    }
    private Node parent;
    public Node getParent() {
    return parent;
    }
    public void setParent(Node parent) {
    this.parent = parent;
    }
    public Node getLeftChild() {
    return leftChild;
    }
    public void setLeftChild(Node leftChild) {
    this.leftChild = leftChild;
    }
    public Node getRightChild() {
    return rightChild;
    }
    public void setRightChild(Node rightChild) {
    this.rightChild = rightChild;
    }
    }
    public Node getRoot() {
    return root;
    }
    }

  • @shailrajmishra7617
    @shailrajmishra7617 4 роки тому +1

    Hats off bhaiya for ur explaining skill

  • @abhijeetjha1592
    @abhijeetjha1592 4 роки тому

    best binary tree explanation on internet . great work .

  • @Vibewithwarrior
    @Vibewithwarrior 4 роки тому +11

    Kotlin's video was amazing.🔥🔥🔥

  • @Saiyan412
    @Saiyan412 Рік тому

    Bhaiyaa aapne bahut acha bataya hai.

  • @abhishekdas1332
    @abhishekdas1332 4 роки тому +3

    Thank you sooo much bhaiya.
    If I got a dream job, you are the one of important reason.
    The way you make things easy to understood it's really amazing.
    Love you

    • @niksddd
      @niksddd Рік тому

      Congratulations in which company?

  • @ITconceptwithDishu
    @ITconceptwithDishu Рік тому

    Finally ab jakr samjh aya 😊

  • @vinayykumar01
    @vinayykumar01 4 роки тому

    Bhaiya me gujrat se hu .. me abhi 12 me hu lekin 12 khatam hone ke bad app ke sare video dekhuga ____you are great teacher love you bruh

  • @MohsinKhan-rv7jj
    @MohsinKhan-rv7jj 4 роки тому

    Bhaiya thanks a lot you teach so well. You are the only reason that today I know Java so well.

  • @ramansingh1095
    @ramansingh1095 4 роки тому +8

    Thanks for uploading this video

  • @suzelkhan3958
    @suzelkhan3958 4 роки тому +1

    Awesome sir ji👌🏻👌🏻❣️

  • @krishnadawalkar6999
    @krishnadawalkar6999 4 роки тому +1

    Amazingly Explained!!!

  • @iambasanta
    @iambasanta 4 роки тому +1

    Watching from Nepal. Thank you for everything bhaiya.

  • @kalyanisharma4826
    @kalyanisharma4826 4 роки тому +1

    Hi bhaiya rudransh pandey here ....thank you for video, was waiting for this video

  • @sonalisaxena22
    @sonalisaxena22 4 роки тому

    very very very very well explained bhaiya👍 Thank you

  • @hardikmehta140
    @hardikmehta140 4 роки тому +2

    Awesome brother

  • @fardilviews
    @fardilviews 2 роки тому +2

    in c language it is quiet difficult , so i am watching your java implementation

  • @mathscomputer
    @mathscomputer 4 роки тому

    Nice video bhaiya. Your content is really good and best

  • @shreyashverma5726
    @shreyashverma5726 4 роки тому +8

    high on confidence🔥

  • @uniqcreationz
    @uniqcreationz 4 роки тому +1

    Best video 🔥

  • @anubhavjain7188
    @anubhavjain7188 4 роки тому +1

    Bhaiya ye series data structures ki continue rakhna please

  • @abhinavsharma2953
    @abhinavsharma2953 4 роки тому +1

    Bhaiya c++ ka bhi ek badhiya sa course banaiye.......Apni kaksha par ek course start hua tha (along with java) but wo kabhi complete nahi hua.......Aap bahut badhiya padhate ho isliye plzzzz

  • @miracles8433
    @miracles8433 4 роки тому +2

    Bhaiya I'm NEET aspirant but I always watch you and subscribe your channel , because whenever I see you I feel positive ☺️ love you so much 💖

  • @iamabhirupdatta
    @iamabhirupdatta 4 місяці тому

    Level sabke niklege !

  • @PramodYadav-dr9vq
    @PramodYadav-dr9vq 2 роки тому

    thank you so much Bhaiya ,you are just live saver even not just live saver you make life so tree friendly😍😍😍😍

  • @urvishpatel2588
    @urvishpatel2588 4 роки тому +2

    Welcome back bhayaa
    Aapka nam dekhkar hi subscribe karliya😀

  • @shailrajmishra7617
    @shailrajmishra7617 4 роки тому

    Yes thanks bhaiya you made my day.....

  • @kenypatel9652
    @kenypatel9652 4 роки тому +1

    bhaiya it's really help full if you create detail video series on DS and Algo by the way thank you for teaching us.😍😍

  • @meghadridas7928
    @meghadridas7928 4 роки тому +1

    It helped me in isc exam

  • @rishavgupta4312
    @rishavgupta4312 Рік тому

    best part of the video :- mars is a cold place

  • @nikhilmiralwar683
    @nikhilmiralwar683 2 роки тому

    Thank you very much sir 👍

  • @MeditateWithSagar3
    @MeditateWithSagar3 2 роки тому

    Bhaiya love you 😘😘 … samjh aa geya

  • @anshumangupta1001
    @anshumangupta1001 4 роки тому +2

    Thank you so much ❤️
    Anuj Bhaiya
    For making this....
    I am searching this for last week..
    But not able to find explanation like you....
    One last request for you is to start Algorithm Series......
    Thank you so much once Again ❤️

  • @imsagar3541
    @imsagar3541 4 роки тому

    Anuj Bhaiya Please More vIdeos about java and Android development.

  • @Anshika.Agrawal
    @Anshika.Agrawal 2 роки тому +1

    Despite being red, mars is actually a cold place!
    I thougth you added this line with a meaning that -Trees seems to be harder, but are actually easy when you understand it well 😅🤣

    • @AnujBhaiya
      @AnujBhaiya  2 роки тому +1

      Thinking level: GODMODE lol 😂

  • @nitin5865
    @nitin5865 4 роки тому +1

    Thank a lot bhaiya for your efforts ...keep growing 😊😊

  • @mayankkumar6255
    @mayankkumar6255 4 роки тому +6

    Bhaiya , data structure ke doosre topics par Bhi video banaye kyuki 3rd semester chal Raha hai . 😀😀 🙏🙏🙏

  • @saksham2331
    @saksham2331 2 роки тому

    template mein hi tha :) btw Thanxxxxx a lot anuj bhaiya for making these amazing videos

  • @bhaktilatadash7619
    @bhaktilatadash7619 3 роки тому +1

    U r awosome 👍👍👌👌👌👌🙏🙏🙏🙏

  • @HarshKumar-nh6be
    @HarshKumar-nh6be 4 роки тому +5

    bhot gazab bhaia aise to m 2nd year ke end hi placement krlunga :)
    ONCE AGAIN YOUR CHANNEL WILL DEFINITELY GROW!!

  • @sarthakchauhan1637
    @sarthakchauhan1637 3 роки тому +1

    Amazing explanation!

  • @ShwetaSingh-xv1lb
    @ShwetaSingh-xv1lb 3 роки тому

    Anuj bhaiya aap please series banayiye full !!

  • @kunalgiri6114
    @kunalgiri6114 4 роки тому

    Keep it up bhaiya..
    Very informative 👍👍👍👍

  • @bibhuduttanayak8189
    @bibhuduttanayak8189 4 роки тому

    Thanks bhaiya....

  • @rajshrishrimal2653
    @rajshrishrimal2653 4 роки тому

    Superb video 💥🎉🎆

  • @nitinkumaryadav6881
    @nitinkumaryadav6881 4 роки тому

    Bhaiya saare ds algo complete krwa dijiye.... Love you Bhaiya ❤️

  • @ayushiverma1904
    @ayushiverma1904 3 роки тому +1

    You are awesome..

  • @pratikgupta7373
    @pratikgupta7373 4 роки тому +1

    you are too good

  • @abhiram6087
    @abhiram6087 3 роки тому

    so Underrated video.

  • @afzalhasan6890
    @afzalhasan6890 4 роки тому +1

    Bhaiya u r doing a great work . Keep it up😇

  • @janvimyadventures1310
    @janvimyadventures1310 4 роки тому

    Pls make complete series on data structures
    Which portion you left at apni kaksha

  • @rameshgunda4334
    @rameshgunda4334 3 роки тому

    nice one friend. thanks

  • @AmitChaudhary-bj4tj
    @AmitChaudhary-bj4tj 4 роки тому

    Thanks bhaiya

  • @sonudeep6472
    @sonudeep6472 4 роки тому +2

    Vaiya ak pura series banaiye iss ka❤️

  • @anshumanrout6505
    @anshumanrout6505 4 роки тому +1

    Always awesome ❤️🔥

  • @amarwagh5066
    @amarwagh5066 3 роки тому

    Great sir

  • @Ambassador7860
    @Ambassador7860 4 роки тому +1

    Love you bhaiya ❤

  • @mahammadsafiq7262
    @mahammadsafiq7262 Рік тому

    Thank you so much

  • @dhyeypatel7449
    @dhyeypatel7449 4 роки тому

    Thanq so much bhaiya 😀

  • @kanishk_bharadwaj
    @kanishk_bharadwaj 4 роки тому

    Bhaiya plz complete remaining Data structures which were not done at Apni Kaksha channel, by the way you were the only reason to subscribe Apni Kaksha.

  • @HDbIce-oj3wv
    @HDbIce-oj3wv 4 роки тому

    Bhaiya my java is not good, but c++ top level. But I will still watch to see your confidence.

  • @diveruzumaki5556
    @diveruzumaki5556 3 роки тому +1

    7:36 creation of binary tree

  • @krishnadeshpande07
    @krishnadeshpande07 4 роки тому +2

    Anuj Bhaiyya
    I have learnt java so well..
    Now I want to go for Ds algo
    So Give me Suggestions .

  • @gopalvashishtha5572
    @gopalvashishtha5572 4 роки тому

    Eagerly waiting for it...Thanks a lot bhaiya.
    Pls make videos at this pace only and cover all ds and algo🙏

  • @vihaansingla5088
    @vihaansingla5088 4 роки тому +1

    Thankyou for this knowledgeable lecture ❤️ from Punjab keep it up bro

  • @nagendradwivedi8857
    @nagendradwivedi8857 4 роки тому

    great video...😍🙏🙏

  • @pratikhire2626
    @pratikhire2626 4 роки тому

    Anuj bhaiya ek pura series banao ds algo pe it will be easy to learn cause there are many but we don't know from how to start and where to start Please.....

  • @rajatagrwl9328
    @rajatagrwl9328 4 роки тому +2

    #anujbhaiya , DS n ALGO ka full launch Kar do ... plzzzzz 🔥 🔥

  • @harshitchaubey8274
    @harshitchaubey8274 4 роки тому +77

    The Nation wants to Know .... Why you left apni kaksha???

    • @umeshpatel6276
      @umeshpatel6276 4 роки тому +12

      lagata he Online lecture ke liye username change kiya he ? 😂😂😂

    • @shivamgupta1699
      @shivamgupta1699 4 роки тому +3

      Haan bhai

    • @aniketdutta6543
      @aniketdutta6543 4 роки тому +29

      APNI kaksha me padhata ye tha lekin Pura credit Aman le leta tha shayad isliye

    • @vasutiwari4187
      @vasutiwari4187 4 роки тому +10

      @@aniketdutta6543 Han placement series wali lecture Kai tumbnail bhi change kar Diya aur anuj bhaiya ka photo laga kar apna dal Diya🤦🤦

    • @anilrajput7081
      @anilrajput7081 4 роки тому +8

      @@aniketdutta6543
      Tum logo asee mt bolo ...dono hi best hh apni apni jgh ....ab in dono ke beech or misunderstanding mt create kro🙏🙏🙏

  • @sachinsinghjagawat5397
    @sachinsinghjagawat5397 4 роки тому

    Bhaiya, plz make playlist of DS Algo, I love the way you teach❤️🙏🏻

  • @anilkumartiwari3961
    @anilkumartiwari3961 4 роки тому

    Very happy to see you 😀

  • @trainwithguneet
    @trainwithguneet 4 роки тому

    Loved the video bhai. ❤️❤️❤️

  • @animeshnayak9199
    @animeshnayak9199 4 роки тому +11

    1st comment & 1st views love uu sir💖💖