Introduction to Linked List | Data Structures & Algorithms | Java Placement Course

Sdílet
Vložit
  • čas přidán 28. 08. 2024
  • Skip to Linked List Direct Implementation - 41:01 (Don't skip if you want to understand Linked List in Detail)
    16:20 - Insert in a Linked List (First & Last)
    26:50 - Display/Print a Linked List
    30:50 - Delete in a Linked List (First & Last)
    38:41 - Size of a Linked List
    41:01 - LinkedList class (Collections Framework)
    Notes to the Lecture : docs.google.co...
    🔥Java Placement Course : • Introduction to Java L...
    🔥Complete C++ Placement Course (Data Structures+Algorithm) : • C++ Full Course | C++...
    🔥Telegram: t.me/apnikaksh...
    🔥Instagram: / dhattarwalaman
    My CZcams Gear 😉: docs.google.co...
    Notes of this Lecture:

Komentáře • 859

  • @user-so3tr7rj6g
    @user-so3tr7rj6g Před 10 měsíci +42

    16:20 - Insert in a Linked List (First & Last)
    26:50 - Display/Print a Linked List
    30:50 - Delete in a Linked List (First & Last)
    38:41 - Size of a Linked List
    41:01 - LinkedList class (Collections Framework)
    Thank You

    • @mdmahmudulhassan1488
      @mdmahmudulhassan1488 Před 7 měsíci

      mam
      i didn't understand inside addFirst method if( head == null)
      here head where did it come from?
      please hlp me out

    • @ShinchanNohara-ye8hw
      @ShinchanNohara-ye8hw Před 5 měsíci

      ​@@mdmahmudulhassan1488 watch at 28.50

    • @sarthakshishodia4838
      @sarthakshishodia4838 Před 5 měsíci

      @@mdmahmudulhassan1488 Bro hmne phle hi head ko static Node declare kr dia tha ek baar dobara dekho

  • @princepriyaraj6089
    @princepriyaraj6089 Před 2 lety +91

    This topic took me 2 days to understand nicely. Felt like a webseries. Thank you mam. Very engaging session.

    • @devotion_surya3741
      @devotion_surya3741 Před 2 lety +5

      Last few minutes and starting few minutes is a bonus knowledge for us.

  • @dbinod8383
    @dbinod8383 Před rokem +38

    Nice tutorial, within 48 min, got to know many of things, By which I became comfortable with linked list, Thanks Sarhda didi for making amazing explaination.

  • @Hustler0109
    @Hustler0109 Před rokem +21

    These videos makes more sense to me when I forget the concepts in the middle of a problem. Best teacher💕

    • @rohitsamant8240
      @rohitsamant8240 Před rokem

      es wali video ke home work question ke Ans bhej skti ho

  • @mdsarfraznawaz2911
    @mdsarfraznawaz2911 Před 2 lety +66

    I love this channel. You are doing a noble job here. There is an enormous learning here. Again thanks.

  • @NoobCoder623
    @NoobCoder623 Před 2 lety +12

    Very good idea of starting linked list before binary search.
    Because if you study binary search first then during practising on leetcode or any platform
    Usually public submitted their answers in advanced form which we are unable to understand.

  • @vijankaush7308
    @vijankaush7308 Před rokem +15

    These contents are awesome. It would better if you can add English subtitles for international students like me. Cheers from Sri Lanka

  • @ianujsharmag
    @ianujsharmag Před 2 lety +5

    Mam when you smile while teaching is the best part of this video 😀😇
    And your method of teaching is very good 👍

  • @sugyanpatnaik2098
    @sugyanpatnaik2098 Před 2 lety +40

    Thanks for the video. It would be great if you could make a video on how to add/delete a node from the middle

  • @Only_reels07
    @Only_reels07 Před rokem +1

    mem jab jab aapka lecture dekhta hoon mera self confidence gir jaata hai
    but mem aapka concept high lvl hai

  • @SHTALKS
    @SHTALKS Před 2 lety +32

    I am a python user but, I learn concepts of these data structures and algorithms from here, Your style of teaching is awsome, So Thank you very much,
    Love from pakistan

  • @VaidikPatel-vp47
    @VaidikPatel-vp47 Před měsícem

    Nice explanation with very ease. I have tried many videos for linked list but this is best video to learn linked list from scratch.

  • @shrikantdewangan
    @shrikantdewangan Před 2 lety +74

    We need this similar course in c++
    It's better than previous one

    • @user-cl2ki2cz7g
      @user-cl2ki2cz7g Před 2 lety +6

      You can learn concept from here and watch source code in cpp course.
      This course is almost language independent.

    • @ashutoshmishra3916
      @ashutoshmishra3916 Před 2 lety

      or you can refer to channel code help .......for DSA series with C++

    • @manishbhamare1822
      @manishbhamare1822 Před 2 lety +1

      Muze to bhai behen lagte ye

    • @sudhanshukushwaha6351
      @sudhanshukushwaha6351 Před 2 lety +1

      @@manishbhamare1822 🙏😂😂

  • @rinkirathore6502
    @rinkirathore6502 Před 2 lety +6

    @5:45 She actually means that time complexity to "get" an element by index is O(1). While time complexity to "search" an element in an ArrayList is O(n) which is same as of linked list since we iterate over the entire list to search for a particular element.

    • @amitray769
      @amitray769 Před 2 lety +1

      Thanks Rinki.... I was thiniking the same and you clarified it.

    • @mdsarfarazalam8452
      @mdsarfarazalam8452 Před 2 lety +1

      @@amitray769 can you tell me how in "class node" node next variable written .i mean which oops concept is written here

    • @mdsarfarazalam8452
      @mdsarfarazalam8452 Před 2 lety

      @@amitray769 can you tell me how in "class node" node next variable written .i mean which oops concept is written here

    • @idraksheikh301
      @idraksheikh301 Před rokem +1

      @@mdsarfarazalam8452 Sir "Node next" will take the reference of node upcoming nodes. In runtime polymorphism we take reference of base class and use constructor of child class

  • @ManiacXJohan
    @ManiacXJohan Před rokem +3

    Thanku mam, first you created a base of what a LInkedList is by teaching to add delete the element from scratch and then next by collection framework thanks for the efforts......

  • @amaanullah13
    @amaanullah13 Před rokem +6

    Thankyou Ma'am for making it easy to understand.
    Since morning I was stuck into this topic.
    Onboarding to assignments now✈️

    • @rohitsamant8240
      @rohitsamant8240 Před rokem +1

      es wali video ke home work question ke Ans bhej skte ho

    • @antimuggle_ridhi2565
      @antimuggle_ridhi2565 Před rokem +5

      in the video she hasnt initialised the head variable, why is it not giving error?

  • @Fitness_a2a
    @Fitness_a2a Před 2 lety +2

    Apki video dekhar me coding basic puri tarha se sekh gaya thank you 🥰

  • @100xDevPiyush
    @100xDevPiyush Před rokem +1

    I got a little emotional such a simple explanation In my college the linked list had started before OOps and I understand nothing and this is first time got to know that there are 3 types of linked list Thank You Apna College

  • @dayaramsaini2829
    @dayaramsaini2829 Před rokem +2

    Great way of teaching. Touching the mind .

  • @user-lb3iq1ms5l
    @user-lb3iq1ms5l Před 8 měsíci

    your way of teaching is so good that no-one can feel bored while watching your video.

  • @vijaybagal712
    @vijaybagal712 Před rokem +3

    Even our teachers was not able to explain like u..👌👍🏻👍🙏

  • @indiancreation3605
    @indiancreation3605 Před 7 měsíci +12

    06:07 Linked list is a data structure that consists of nodes linked together.
    12:14 Linked list is a data structure that links different data together
    18:21 Linked list is a data structure in which each element is connected to the next element through a chain of pointers.
    24:28 Insertion and deletion operations are key in linked lists.
    30:35 Traversal and manipulation of linked lists
    36:42 Two key operations in Linked List are add and delete
    42:49 Linked list operations in Java
    48:50 Link list in Java can be used to add, remove, and traverse elements.
    Crafted by Merlin AI.

  • @AmanRo-45
    @AmanRo-45 Před měsícem

    amazing lecture i have studied earlier but i always learn new things from your lectures

  • @rashahoda3215
    @rashahoda3215 Před rokem +2

    i have never been so grateful to understand hindi

  • @anikamboj3771
    @anikamboj3771 Před 2 lety +9

    2nd problem -- it,s note a proper solution but
    try to solve the second problem ---
    public class ll1 {
    //linkedlist Node
    static class Node {
    int data;
    Node next;
    // method for to delete a nodes whose value is greater than given value
    static ll.Node deletenodes(ll.Node head, int rem){
    ll.Node temp,p=head;
    if(head==null){
    return null;
    }
    while(p!=null && p.data>rem){
    temp =head;
    head = head.next;
    temp.next=null;
    }
    while(p.next!=null) {
    if (p.next.data>rem) {
    // Node p = head;
    temp = p.next;
    p.next = temp.next;
    temp.next = null;
    }
    else
    p = p.next;
    }
    return head;
    }
    //function to print linkedlist
    static void displaylist(ll.Node head){
    ll.Node temp = head;
    while(temp!=null){
    System.out.print(temp.data +" ");
    temp = temp.next;
    }
    }
    // utility function to crete a new node
    static ll.Node newNode(int x){
    ll.Node temp = new ll.Node();
    temp.data = x;
    temp.next = null;
    return temp;
    }
    public static void main(String[] args) {
    //start with the empty list
    ll.Node head = newNode(1);
    head.next = newNode(2);
    head.next.next = newNode(3);
    head.next.next.next = newNode(4);
    head.next.next.next.next = newNode(5);
    head.next.next.next.next.next = newNode(6);
    head.next.next.next.next.next.next = newNode(7);
    int rem = 4;
    head = deletenodes(head,rem);
    displaylist(head);
    }
    }

  • @vishalbharatpatil4125
    @vishalbharatpatil4125 Před 2 lety +1

    Excellent Teaching Skills. By the way, can't define that you are laughing or speaking by looking you. That's a compliment. :)

  • @codingnikhil4373
    @codingnikhil4373 Před 2 lety +9

    Best lecture in linked list

  • @pratika-prakhar
    @pratika-prakhar Před 2 lety +15

    Awesome 👌 the way of your teaching is outstanding... I wathed this video yesterday ... today i code all the methods without revisit the video ...
    there are many videos i watched to understand the LinkedList, but this is the best out of them.

  • @user-lg8kn5nc8m
    @user-lg8kn5nc8m Před 9 měsíci +1

    Thank you didi you are the best teacher who clear my all doubts without asking it.❤

  • @amankumarsingh6744
    @amankumarsingh6744 Před 2 lety

    Gajab mam
    Saara concept clear ho gaya
    KOTI KOTI NAMAN HAI AAPKO

  • @pritamsaini2918
    @pritamsaini2918 Před 2 lety +2

    everytime i watch this video ... i learn a new thing
    thanku dii and aman bhai

  • @unemployedcse3514
    @unemployedcse3514 Před 2 lety +270

    Who were thinking Node Head is not declared and why editor is not showing error 🤔🤔😊

  • @sandeepyadav3563
    @sandeepyadav3563 Před 2 lety +3

    Hii ,your session improve me in dry thinking, knowledge etc. Thank You , Miss

  • @husain_bhai0
    @husain_bhai0 Před rokem +54

    Hello Aman Bhaiya,
    There are few more concepts that we need as in college as professional, if possible if you can make video on these concepts of Java:
    Java API Packages
    Multi threaded programming
    Managing Error and Exception
    Managing I/O Files
    Java Collection
    Applet Programming
    AWT
    Event Handling
    JavaFX
    JDBC
    Java Networking
    Thank You

  • @someshsahu4638
    @someshsahu4638 Před rokem +6

    In line no. 14, where did the "head" come from and what it's type

  • @dailycoding9845
    @dailycoding9845 Před 2 lety +11

    Wow nice timing di!!
    I'm searching for this 😊👍
    Thank you so much!!!

  • @vishalsoni7172
    @vishalsoni7172 Před 2 lety +2

    didi, i was need it with java because i am learning java for placement and you are giving java lacture and DSA using java. so thank and thanks apna college

  • @chandansahoo466
    @chandansahoo466 Před 2 lety +4

    Your concept is so clear. All the very best wishes Betaa..Jio jee bharke..Am so proud of you.. Dear viewer, do not miss this video..Aap bahat aage jaaoge betaa.. keep it up 👍👍👍👍

    • @coding1415
      @coding1415 Před 2 lety

      czcams.com/video/2qk1KVB2YLs/video.html C language

  • @shwetanksudhanshu4383
    @shwetanksudhanshu4383 Před 2 lety +1

    The best thing is to understand using diagrams.Thankyou

  • @numeric_code
    @numeric_code Před rokem +2

    such a greate level explenation

  • @bhaktisangeet1616
    @bhaktisangeet1616 Před 9 měsíci

    i have tried to get it into my mind from last 4 to 5 days but not able to understand till watching before this video........ thank you so much......... i think best teacher in the coding era..... whose very much aware where students got stucked.... and knows very well how to get out of them..... again thank you so much..........

  • @SonuKumar-uq2rb
    @SonuKumar-uq2rb Před rokem

    aapse sikne k baad dubara padne ki jarurat nhi .great

  • @rajveersinghrawat3311
    @rajveersinghrawat3311 Před 2 lety

    Mam really yrr aaj tk ek bhe lecture samaj me nahi aaya linked list kaa your way of teaching is so amazing from scratch 😍 . Full of full concept clear just keep it up ☺.

  • @rinkirathore6502
    @rinkirathore6502 Před 2 lety +3

    @7:40 time complexity to insert "at the start of linked list" is O(1) while the time complexity to insert at end of the list or in the middle of list is O(n) because first we have to traverse the list to reach that node after which we want to insert new node.

    • @firstyfirst
      @firstyfirst Před 2 lety

      exactlyy ,

    • @anilptl
      @anilptl Před 2 lety

      if you know i have one question how can we check for head ==null without declaring it to a node type t=21:21

    • @rajukanuri5122
      @rajukanuri5122 Před rokem +1

      @@anilptl she mentioned at last

  • @mranalyzer7698
    @mranalyzer7698 Před 2 lety +18

    Can u pls explain about asymptotic notation and time complexity. It will be helpful if u could do it.

  • @BalasubramaniH-xt1pp
    @BalasubramaniH-xt1pp Před rokem +1

    Really Lovely Explaination ..............................

  • @jatinsawant7540
    @jatinsawant7540 Před rokem +7

    where the head node is declared in here?
    I watched the starting of code and there is no head declared but then too its not throwing any errors how??

  • @manoharthanawasi
    @manoharthanawasi Před 10 měsíci

    Time complexity for accessing array element is O(1) and for linear search it's O(n).

  • @vibehai846
    @vibehai846 Před 2 lety +1

    Masha'Allah bohot umda.

  • @bharadwaj2594
    @bharadwaj2594 Před 2 lety +1

    finally didi is back and firsttime i understand concept and some one say me where to practice progrming qp on linked list

  • @nirmalsingh3212
    @nirmalsingh3212 Před 11 měsíci +3

    Agar linkedlist pahle se tha to start main itna kyu karwaya interview ya placements main kaam aata hai kya

  • @vijaybagal712
    @vijaybagal712 Před rokem

    Thank did...hat's to u didi....when i was at your age not able to grasped such a valuable knowledge and presentation...👍👍🏻👌👌

  • @shabankhan4383
    @shabankhan4383 Před 2 lety +5

    Cpp wale me bht easily smjh aa gya tha 😄

  • @732_dipen4
    @732_dipen4 Před 2 lety +4

    Your explanation is awesome 👍

  • @jugadoo-bhai
    @jugadoo-bhai Před 2 lety +163

    She is just like female version of Aman , same way of teaching.

    • @coding1415
      @coding1415 Před 2 lety

      czcams.com/video/2qk1KVB2YLs/video.html C language

    • @zapeeosheikh
      @zapeeosheikh Před 2 lety +2

      Agree❣️

    • @kirtithakur321
      @kirtithakur321 Před 2 lety +3

      @@coding1415 ooo wow very smart ha 😂😂😂 jitne bhi famous channels H waha apni links paste kr aao😂😂good idea.

    • @AkbaraliQ
      @AkbaraliQ Před 2 lety +7

      Ham ye kr rhe honge, aa rhe honge, ja rhe honge 😂😂

    • @shemolchaudhary5807
      @shemolchaudhary5807 Před 2 lety

      @@kirtithakur321 terai ko kyu dikkat hai bsdk

  • @VinodSharma-mw9rc
    @VinodSharma-mw9rc Před 5 měsíci +2

    where is the head node declared in here?
    There is no head declared but then it's not throwing any errors how??

  • @farhanbutt6865
    @farhanbutt6865 Před rokem +1

    Explained in an excellent way

  • @pawanrajput9451
    @pawanrajput9451 Před rokem

    Thank u so much dii
    The way of teaching is really exceptional

  • @suryanshpundir9420
    @suryanshpundir9420 Před 10 měsíci +3

    Where is doubly linked list and circular?

  • @SANDEEPKUMAR-rg4tk
    @SANDEEPKUMAR-rg4tk Před 2 lety +4

    Excellent explanation,very helpfull
    Thanks

  • @vanshmehta2890
    @vanshmehta2890 Před rokem +1

    my face in whole video 😧😧 then the video came of last five minutes got me 😌😌

  • @masoomraza5155
    @masoomraza5155 Před 2 lety

    You are a very GOOD person and always RIGHT

  • @gonurraviteja9016
    @gonurraviteja9016 Před rokem +2

    The way of teaching the concepts is clear & excellent 👌

  • @milindchaturvedi9770
    @milindchaturvedi9770 Před rokem +1

    Thank a lot for this valuable video ♥ Helped me a lot !

  • @SachinSharma-yb5ov
    @SachinSharma-yb5ov Před 2 lety +1

    Mam ek Question hai ki Array index hum ( Zero se hi kyu Start krte hai ) Mam Please Answer

  • @Somevideos12
    @Somevideos12 Před 2 lety +4

    Good and great teaching skill 😍

  • @INVADE.00
    @INVADE.00 Před rokem +1

    Didi head pore code meh kab sy ghoom phir raha tah or end per usy create kiya very confusing.

  • @o46_tauhidqureshi38
    @o46_tauhidqureshi38 Před 2 lety +1

    HYPNOTIZED BY YOUR MOMENTS OF HANDS..

  • @sundaramumarvaishya7757

    I watched various video but when i watch this video then i cleared my doubt thanks shradha didi

  • @nehaaggarwal693
    @nehaaggarwal693 Před rokem +3

    Seriously means everything so well explained in detailed....superb effort.....👍

  • @AbdulHafeez-eb8vo
    @AbdulHafeez-eb8vo Před 2 lety

    The way of teaching. I LIKE ♥

  • @denis_jethava
    @denis_jethava Před 3 měsíci

    Great.... Easily Understand ✨

  • @user-ov1dx6cg1z
    @user-ov1dx6cg1z Před měsícem

    From starting i will thinking it very hard but when i complete this video i think it is not hard as compare to i think . Thanks to shradha didi

  • @akkid7666
    @akkid7666 Před 2 lety +5

    Thank you so much mam .I was searching for this kind of explanation and now I understand.God bless you 🙏

  • @pravindabhade185
    @pravindabhade185 Před 2 lety

    Train wala example for linked list is the best one. 👍

  • @sameerfaisal3240
    @sameerfaisal3240 Před rokem

    My all problems are solved by Mam Sharadha, Love from pakistan

  • @aninexclusive466
    @aninexclusive466 Před 2 lety +3

    your teaching skill is so good!
    But I am struggling to understand Hindi!
    You can add subtitle!

  • @sandeep_khangar
    @sandeep_khangar Před 2 lety +13

    Good explanation but I'm sure no one can implement linkdelist in real-world . Can you please also explain with some custom classes ?

  • @mdfurkaanalam5667
    @mdfurkaanalam5667 Před rokem

    Sukriya didi kafi Acche se bataya appne is topic ko

  • @wardenOppp
    @wardenOppp Před rokem +1

    Samaj nhi aya... Lekin sunka accha laga😊

  • @mayank_singh_43
    @mayank_singh_43 Před 2 lety

    after watching this video , I fall in love with LinkedList

  • @debashishmahato4591
    @debashishmahato4591 Před 2 lety

    LinkedList explained so nicely.. got this video thankfully, :)

  • @oyesoyam
    @oyesoyam Před 3 měsíci +1

    Thank you maam it helped a lot

  • @kunsangmoktan335
    @kunsangmoktan335 Před 2 lety +3

    Thank you for explaining it very well and making it clear..

  • @rohitdey4551
    @rohitdey4551 Před 2 lety +1

    Most important topic in java...POINTERS ...Pls....upload a video on this.....it will be helpful for all

    • @suhailashraf4208
      @suhailashraf4208 Před 2 lety +2

      there are no pointers in java. They are in c.....

    • @dhrxval
      @dhrxval Před 2 lety

      Exactly , no pointers in java

    • @GhostRider....
      @GhostRider.... Před 2 lety

      Java has reference instead of pointer

  • @rituja_D
    @rituja_D Před rokem

    U r too good teacher..Thanku :)

  • @continnum_radhe-radhe
    @continnum_radhe-radhe Před 2 lety +2

    Thank you so much 🔥🔥🔥

  • @danalaxmidanalaxmi1243
    @danalaxmidanalaxmi1243 Před 10 měsíci +1

    Maaaaam u kept video title java&DS but explained only java code..... there is no code of Linked list for DS

  • @Shivamyadav-ho2qi
    @Shivamyadav-ho2qi Před 2 lety +3

    head is not declared initially it shows red line in my vs code ...!!!

  • @souviknandi4064
    @souviknandi4064 Před rokem +1

    shradha maam is the physicswallah of coding
    🙃🙃🙃🙃🙃🙃🙃🙃🙃

  • @anshulsharma9649
    @anshulsharma9649 Před rokem

    great way of teaching thanks dear.

  • @user-pq1lo7um2n
    @user-pq1lo7um2n Před rokem +4

    hi, wonderful playlist.....can someone please guide me with some explanation about "HEAD" & "NEXT" declared in node class

  • @venkateshwarlukodithyala3426

    Thanku u so much mam for anonymous teaching..

  • @vaibhavbagal9209
    @vaibhavbagal9209 Před rokem

    Best teacher ever world

  • @Sarthak-zx2wd
    @Sarthak-zx2wd Před 2 lety +1

    The name of the channel should be "Apni didi"

  • @tariqnawaz9849
    @tariqnawaz9849 Před 2 lety

    super the way you are teaching is very good

  • @MonarkPatel-nb7jr
    @MonarkPatel-nb7jr Před 2 měsíci +2

    How no one is talking about the head implementation in the addFirst method.

  • @Anonymous_Ali01
    @Anonymous_Ali01 Před 2 lety +2

    Good efforts 👍

  • @AmitKumar-cp1oz
    @AmitKumar-cp1oz Před 2 lety +6

    mam, please make sub-sections in the longer videos, easy to rewatch.

    • @rajkumarmaurya9635
      @rajkumarmaurya9635 Před 2 lety +3

      1 topic 1 video is always have good learning experience
      More video means distraction

    • @AmitKumar-cp1oz
      @AmitKumar-cp1oz Před 2 lety +2

      @@rajkumarmaurya9635 no i mean like time-stamps on same video.

  • @aaqibkhan7155
    @aaqibkhan7155 Před rokem +5

    Double linkedlist ka lecture kab upload hoga?