Most IMPORTANT Linked List Questions for Placements | Java Full Course

Поделиться
HTML-код
  • Опубликовано: 1 фев 2025

Комментарии • 316

  • @isha_Sharma.0414
    @isha_Sharma.0414 3 года назад +14

    Didi best course nd best explanation please complete it♥️🔥.

  • @Now_I_am_all_fired_up
    @Now_I_am_all_fired_up 2 года назад +7

    The expression you gave me at the
    beginning of this vedio is super amazing ---- I Like it ----- simple simple simple simple

  • @abhishekkamboj7150
    @abhishekkamboj7150 3 года назад +1

    Mme apko follow kr rha hu dsa k liyeee or ek path bhi mil rha tha but apka koi new video ni aya linkedlist pr please🙏 keep it up its very helpful for every student that who will learn dsa please🙏please keep it up

  • @aviralkaushik9425
    @aviralkaushik9425 2 года назад +7

    i never forget the concept ... hare & turtle '😊 THANKYOU SO MUCH DI.

  • @aasthashivhare609
    @aasthashivhare609 3 года назад +24

    Thank you so much for this course please complete it ♥️♥️

    • @pragatii9054
      @pragatii9054 6 месяцев назад +1

      Why my code is not running though I written correct

  • @tech_g935
    @tech_g935 Год назад +5

    I wish I had such type of trainer and platform in my engineering days 20 years back. But nevertheless its never too late to begin something good.

    • @yashsoni8043
      @yashsoni8043 Год назад

      bhai pehle quesion mai jo public LIstNode .... likh rkkha hai usme ListNode pae to red line error dikha rkkha hai to kaise kru reply krdo solution hai to iska

    • @Aryannegi1807
      @Aryannegi1807 Год назад

      ​@@yashsoni8043 kaha pr aara h?

    • @yashsoni8043
      @yashsoni8043 Год назад

      @@Aryannegi1807 ListNode pr (jb mam ne public ListNode likha to ListNode pe red line aa rhi hai )

  • @vikask7735
    @vikask7735 6 месяцев назад +1

    Haa to sahi se pdhao
    Or ache se kro ise dobara😂
    Baki u r the sweetest or acha hi padhati ho❤

  • @riteshgaharwar7822
    @riteshgaharwar7822 3 года назад +76

    Difference between old study and modern , pahle coment krne p teacher gussa hote the aur ab khus🤔

    • @yashupadhyay7188
      @yashupadhyay7188 3 года назад +6

      Gussa tab hote the jab unke padhate time comment kro yaha pe padhane ke baad comment aate hain

    • @growingfire
      @growingfire 2 года назад

      @Georgian 😂

  • @sweetpatel2169
    @sweetpatel2169 3 года назад +4

    Please make a freelancing series ...how to make gig , how to deal with clients kindly make these videos

  • @Anuragkumar-on4mj
    @Anuragkumar-on4mj 3 года назад +6

    Thanks dear Aman bhaiya,
    Your suggestions are ♾️ Valuable🤘🤘🤘

  • @AmanSharma-zy8yd
    @AmanSharma-zy8yd 3 года назад +8

    Mam pls continue java course 🙏🙏🙏🙏

  • @pritamsaini2918
    @pritamsaini2918 3 года назад

    16:47 .. the way did says "logic chahe ham kitna b bda bna le lrkinn space nagi use krenge computer ki"

  • @kunalpatle6465
    @kunalpatle6465 3 года назад +6

    Amazing guidelines 🤞

  • @Rieshu-l9i
    @Rieshu-l9i 11 месяцев назад

    #Apna College & shradda didi rocks, god bless you & all 👍

  • @kamertonaudiophileplayer847
    @kamertonaudiophileplayer847 3 года назад +2

    It looks my interview questions need to be revised since the video perfectly covered them.

  • @playhaze6965
    @playhaze6965 3 года назад +1

    yaar yeh kitni awesome hai

  • @vishalkharche9662
    @vishalkharche9662 2 года назад +13

    @Apna College
    I think, we can eliminate 1st condition of (head.next==null) because for length of Linked list = 1, the condition (n==size) will do the the task, isn't it?

    • @dotencoma
      @dotencoma Год назад

      Yep. I think so too.

    • @vipinsharma-jo9hw
      @vipinsharma-jo9hw Год назад

      No here we need the previous node to delete the node we want and for the head there no any previous node.

  • @yashbhargava3552
    @yashbhargava3552 2 года назад

    Literally made it easy........Hats off to you....

  • @pruthvirajjadhav9322
    @pruthvirajjadhav9322 2 года назад +1

    Heyy! Do update the answer to remove the loop soon. Btw crazy playlist. Loving it so far

  • @truptigorde5294
    @truptigorde5294 3 года назад +3

    This helps me a lot
    ...could you plz upload videos on android as well....actually i am looking for a job in android- java...so some placement videos on android will help me..
    Thank you

  • @vanshikanegi1554
    @vanshikanegi1554 Год назад +1

    1st question lineno. 28
    There will not be i

    • @yashsoni8043
      @yashsoni8043 Год назад

      bhai pehle quesion mai jo public LIstNode .... likh rkkha hai usme ListNode pae to red line error dikha rkkha hai to kaise kru reply krdo solution hai to iska

  • @adityaverma4369
    @adityaverma4369 3 года назад +11

    Mam, we are waiting for your new video to learn to cover all the things.

  • @NerdCultureAnime
    @NerdCultureAnime Год назад +2

    12:55 It should be size-n+1 instead of size -n-1

    • @ShrutiChauhan19
      @ShrutiChauhan19 7 месяцев назад +2

      I too noticed this....nd was searching if any of us had put up this doubt or nott...like am I the only one...or maybe I am wrong or nott..but I'm absolutely correct...thanks for raising the doubt... I appreciate

  • @utkarshshukla4505
    @utkarshshukla4505 3 года назад +28

    Thank you for amazing videos can you please cover all java topics with dsa and dynamic programming 🙏

  • @SachinSharma590
    @SachinSharma590 3 года назад +1

    teaching way is awesome

  • @GamingProgrammerx
    @GamingProgrammerx 3 года назад +5

    Allah Pak aap ko hamesha Salamat rakhe
    ameen 👐
    ✧༺♥༻✧

  • @MeenalSharma-q8y
    @MeenalSharma-q8y 18 дней назад

    Accessing `prev.next.next` without checking if `prev.next` is not null can lead to null pointer exceptions.

  • @jatilyadav4000
    @jatilyadav4000 2 года назад

    great channel for preparation for exams

  • @devotion_surya3741
    @devotion_surya3741 2 года назад +1

    Hare and Turtle explanation is the best one.

  • @amitbhattacharya356
    @amitbhattacharya356 2 года назад +1

    You have made DS easy.

  • @sarthakugale1794
    @sarthakugale1794 2 года назад

    excellent video i seen ever
    🥰

  • @jabalpur_vlog
    @jabalpur_vlog 3 года назад

    Didi ap bahut achcha padhati hai, please python per 4 se 5 hours ka video banayiye .

  • @wasimalam3034
    @wasimalam3034 Год назад +1

    Great lecture for me... thank you ma'am....

  • @pratyushsharma5963
    @pratyushsharma5963 Год назад +16

    Code for removing cycle -
    public void removeCycle(Node head) {
    Node hare = head;
    Node tortoise = head;
    // Move hare and tortoise until they meet again (where the cycle starts)
    while (hare != null && hare.next != null) {
    hare = hare.next.next;
    tortoise = tortoise.next;
    // The point where both of them are at the same place (cycle starts)
    if (hare == tortoise) {
    // Move turtle to the head
    tortoise = head;
    // Move turtle and hare one step at a time until they meet again
    while (tortoise.next != hare.next) {
    tortoise = tortoise.next;
    hare = hare.next;
    }
    // Break the cycle by setting the next of the node where they meet to null
    hare.next = null;
    break;
    }
    }

    • @VigorousScope
      @VigorousScope 4 месяца назад

      Would they meet where the loop starts or where the LL ends?

    • @just2fastyt
      @just2fastyt 3 месяца назад

      @@VigorousScope where the loop begins

  • @masoomraza5155
    @masoomraza5155 3 года назад +1

    i got admision in vit,srm and was able to clear sat 40000 rank in UPTU
    thats how i got my college
    But suffered from slip disc during jee-mains preparation

    • @coding1415
      @coding1415 3 года назад

      ruclips.net/video/AChFRpLhPlk/видео.html C language

    • @AmitKumar-cp1oz
      @AmitKumar-cp1oz 3 года назад +3

      get a pwd certificate.

    • @ankit4701
      @ankit4701 3 года назад

      @@AmitKumar-cp1oz nice 🙂

  • @shrikantahire2003
    @shrikantahire2003 Год назад

    Very Helpful, making things simple to learn by the way of teaching
    ❣❣

    • @yashsoni8043
      @yashsoni8043 Год назад

      bhai pehle quesion mai jo public LIstNode .... likh rkkha hai usme ListNode pae to red line error dikha rkkha hai to kaise kru reply krdo solution hai to iska

  • @TechDecryptor
    @TechDecryptor 3 года назад +3

    Please make a vedio on BTech +mba vs BBA+ MBA!!!!🙏🙏🙏

  • @AdityaSingh-oq2vu
    @AdityaSingh-oq2vu 3 года назад

    maam that friend's talk was very emotional

  • @tanishqverma6764
    @tanishqverma6764 3 года назад +1

    Please Microsoft ki eligibility and hiring process ke upar ek detailed video banaiye na. Please

  • @IU_EDITZZ
    @IU_EDITZZ 3 года назад

    Didi plz video bnayeeee topic beginner lvl k computer user jisko excel bhi nhi ata meri tarah 😅😅😅😅

  • @khushigupta5275
    @khushigupta5275 2 года назад

    THANK YOU SO MUCH DI😍😍😍 GREAT EXPLANATION..............☺😘

  • @adityasahay14
    @adityasahay14 3 года назад

    LeetCode ka sahi prayog...

  • @shwetanksudhanshu4383
    @shwetanksudhanshu4383 2 года назад +6

    great lecture..THANKYOU ....request you to please continue this amazing series.

  • @SATHYAMURTHYR-zn4rz
    @SATHYAMURTHYR-zn4rz 2 года назад

    33.30 --> Detection of Loop in a LinkedList

  • @bikramjitroy3420
    @bikramjitroy3420 3 года назад

    didi regular video upload karo please ....aise video agr upload karoge to bohot din lag jayega

  • @nikhilkoshti5390
    @nikhilkoshti5390 6 месяцев назад

    Finding middle using size takes less time didi. size = 4ms and hare&turtle = 6ms

  • @tejasveer9179
    @tejasveer9179 3 года назад +1

    CDAC video 🔥🔥

  • @TarunGamer820
    @TarunGamer820 3 года назад +3

    🥇First one👌🤜

  • @dukesoni5425
    @dukesoni5425 3 года назад +2

    Thanku didi for everything

  • @namaste-shorts-2004
    @namaste-shorts-2004 2 года назад

    what a great playlist thank you shradha didi

  • @nonstopcodingcodewithadity8238
    @nonstopcodingcodewithadity8238 3 года назад +1

    U r so awesome👏 love ❤❤❤u didi kash mere real Bhai ki jagha aap mere bhen hote and aman bhai mere bhai 🤧🤧🤧🤧

  • @hemantgupta1215
    @hemantgupta1215 3 года назад +1

    please upload more videos to cover all java, we are waiting please do it...

  • @jatilyadav4000
    @jatilyadav4000 2 года назад

    Best Video Apna College Rocks

  • @rohithbhandari7836
    @rohithbhandari7836 3 года назад +6

    For first question If u just want to print then isn't that
    indextosearch=size-n+1 ?

  • @arunrawat2142
    @arunrawat2142 2 года назад +2

    please also make tutorials for doubly, circular linkedList

  • @nehatiwari3568
    @nehatiwari3568 3 года назад +1

    Pls upload videos regularly. Pls pls I am waiting

  • @shubhammahajan8902
    @shubhammahajan8902 Год назад

    when n==size , head can't be removed and answer is whole list

  • @Gg69696
    @Gg69696 Год назад +1

    41:41 ma'am should have used
    | | instead of && 😅

  • @creativitypoint7046
    @creativitypoint7046 2 года назад +1

    Q.2) Check for palindrome. I did it with recursive solution as well. By this way time complexity remains O(n) but space complexity increases bcz of n number of calls in call stack. Here's the code,
    //Inside LinkedList class put these two methods and a static variable
    boolean isPalindrome(){
    if(head==null || head.next==null){
    return true;
    }
    checkPalindrome(head);
    boolean temp=isPalindrome;
    isPalindrome=true;
    return temp;
    }
    private static boolean isPalindrome=true;
    private Node checkPalindrome(Node current){
    if(current==null){
    return head;
    }
    Node start= checkPalindrome(current.next);
    if(current.data!=start.data){
    isPalindrome=false;
    }
    return start.next;
    }

    • @creativitypoint7046
      @creativitypoint7046 2 года назад

      @ Apna College can you please tell me that should I apply this method in an interview/placement ?

  • @ujjawaldewangan8345
    @ujjawaldewangan8345 3 года назад

    Didi question ko dekh ke variable kaise ye analysis krna bhi btaya kre apne video me plzzz

  • @shaileshhacker
    @shaileshhacker 2 года назад +4

    42:58
    /*
    Solution of Removing cycle...
    ☝🏼But first, we have to make a cycle...*/
    // make cycle
    void makeCycle(Node head, int pos){
    Node temp=head;
    Node startNode=null;
    int cnt=1;
    while(temp.next!=null){
    if(cnt==pos){
    startNode=temp;
    }
    temp=temp.next;
    cnt++;
    }
    temp.next=startNode;
    }
    // remove cycle
    void removeCycle(Node head){
    Node turtle=head;
    Node hare=head;
    do{
    turtle=turtle.next;
    hare=hare.next.next;
    }while(hare!=turtle);
    //Corner case: If cycle starts from head.
    if(hare==head){
    while(turtle.next!=head){
    turtle=turtle.next;
    }
    turtle.next=null;
    return;
    }
    hare=head;
    while(hare.next!=turtle.next){
    hare=hare.next;
    turtle=turtle.next;
    }
    turtle.next=null;
    }

    • @kunaldas3952
      @kunaldas3952 2 года назад +2

      Thanks bro

    • @chanakyasinfosphere
      @chanakyasinfosphere 2 года назад

      bhai loop hatane ka logic sahi nahi h... first find no. of nodes in loop (k). And marks 1st pointer to head and 2nd pointer after head by k times. Now move them 1 step each... they'll meet at that point.

    • @shaileshhacker
      @shaileshhacker 2 года назад

      @@chanakyasinfosphere Did you try to compile and run my code? Because I don't think so there is any mistake in my code!
      If you think my code is wrong so kindly comment below your solution😊

  • @hasnainhaider_96
    @hasnainhaider_96 3 года назад +3

    I feel difficulty in built logic in
    Programming.
    Java is my first language i want to be good in it...but how?

  • @dcn467
    @dcn467 Год назад +1

    In second question there should be (here!= null not here.next.next!=null)

    • @AnadiHirpara
      @AnadiHirpara Год назад

      3rd quetion me 41:48 par you shoukd write fast.next!=null && fast.next.next!=null instead of fast!=null && fast.next!=null
      ye ho sakta hai??

    • @ShrutiChauhan19
      @ShrutiChauhan19 7 месяцев назад

      ​@@AnadiHirpara same doubtt...that shraddha may have mistaken it...u r correct

  • @BikashKumarNayak-io5tx
    @BikashKumarNayak-io5tx 2 года назад

    mam please upload the video for Removing the loop in a LinkedList

  • @anupameklavya2078
    @anupameklavya2078 3 года назад

    Ques no 1 :-
    if(n==size){
    return head.next;
    }
    but fir vv 1,2,3,4,5 print ho rha hai jbki 2,3,4,5 hona chahiye tha????

  • @masoomraza5155
    @masoomraza5155 3 года назад +1

    Be humble otherwise you will suffer losses due to lack of humility
    i had 12 backs but i cleared them
    its not engineering experience
    this is error clinged to ones mind

  • @yashangparmar6990
    @yashangparmar6990 3 года назад

    please didi make video fast please,and you are doing amzing .

  • @tejprakashupadhyay3321
    @tejprakashupadhyay3321 3 года назад

    Didi ek C++ par video bana dijiye aap
    Basic ek shoot
    Oops ka ek shoot
    Pointer ka shoot
    Recursion ka shoot
    Please didi bana dijiye aap bahut achhey se Describe krte hai
    Basic data structure in c++ please didi

  • @invisible2795
    @invisible2795 3 года назад +1

    Please make a video on Java android development course

  • @rohanyadav6295
    @rohanyadav6295 8 месяцев назад

    mam , we can solve it using collection framework as well to make it more convenient ,, than why from scratch method

  • @reenayadav8468
    @reenayadav8468 3 года назад +2

    Thank you didi

  • @nittinrana2277
    @nittinrana2277 3 года назад +1

    Thanks ❤️

  • @ruchigupta7513
    @ruchigupta7513 3 года назад +1

    Didi circular & double linked list kab karayoge ?

  • @prashantkashyap5198
    @prashantkashyap5198 3 года назад

    Didi plz make c language course 🙏🏻🙏🏻🙏🏻

  • @xgamer5410
    @xgamer5410 8 месяцев назад

    Removing Loops in a Linked List.
    Didi Need video plz

  • @amansayyad7286
    @amansayyad7286 3 года назад +2

    Didi please explain in short to cut the loop.

  • @newvideo964
    @newvideo964 3 года назад +1

    Change the editor or compiler

  • @hometvfirestick
    @hometvfirestick 2 года назад +3

    Question 1 - 01:43
    Question 2 - 13:13
    Question 3 - 28:36

  • @paragmahale4312
    @paragmahale4312 3 года назад

    Can't thank you all enough....!!!!

  • @sharmistharoy1514
    @sharmistharoy1514 3 года назад

    Just wanted to say, maine bhi 7 baje uthna shuru kara hai✊

  • @ritamarya384
    @ritamarya384 2 года назад

    so i did the question of removing the loop. it worked fine but when it removes the loop, it deletes the node connecting to the meeting point.

  • @yourdad-cf5zr
    @yourdad-cf5zr 11 месяцев назад

    Please update the answer of removing list in notes!
    😄

  • @sahilgupta7001
    @sahilgupta7001 Год назад +1

    these were definitely not the most important questions of linkedlist, no doubt they are a part of important questions but there are more important questions out there for linkedlist

  • @zaidlm10
    @zaidlm10 11 месяцев назад

    Plz do upload the solution for loop detection and removal

  • @morningstar3982
    @morningstar3982 2 года назад +1

    Why not using collection frameworks?

  • @priyanshu_rana
    @priyanshu_rana 3 года назад +1

    Didi please make a video on python.

  • @23cash86
    @23cash86 3 года назад

    Did do pace up the series
    Also python kabse?? 😅😅

  • @P_R_lovebird
    @P_R_lovebird Год назад

    nicely say 👏 ! didi

  • @aniketthakur9670
    @aniketthakur9670 3 года назад

    Hn Didi ek python ke liye bhi playlist banay

  • @swapnilburde7268
    @swapnilburde7268 2 года назад

    Please make video on AVL tree

  • @rizwan-1144
    @rizwan-1144 18 дней назад

    Dear Mam,
    2nd Question Palindrome mein reverse function samaj mein nai aaya

  • @asadumarshorts
    @asadumarshorts 3 года назад +2

    Muskil hai leakin na mumkin nhin no PC and laptop but which your videos

  • @jithinjjj
    @jithinjjj 2 года назад

    Can u pls start Java you tube dsa problem solving and explaination course in java

  • @tahichy9169
    @tahichy9169 2 года назад

    please cover all other DSA in java

  • @theswarajnegi
    @theswarajnegi 2 года назад

    For the first question, What's wrong with my code???
    import java.util.*;
    public class Solution {
    public static void main(String[] args) {
    LinkedList list_1 = new LinkedList();
    for (int i=1;i

    • @notinterested3590
      @notinterested3590 2 года назад +1

      in linked list you cannot pick an element from anywhere and remove it I too tried but failed miserably.

    • @aryan8plays
      @aryan8plays Год назад

      bhai ye array hai, not LL

  • @edu-amplifier2451
    @edu-amplifier2451 3 года назад +2

    Didi please make a review video on NIT Jalandhar. 🙏

  • @mynameisanilsharma
    @mynameisanilsharma 2 года назад +1

    tell me which code editor do you use please

  • @leokujur3160
    @leokujur3160 2 года назад

    Hello
    can you make some hardcore programming videos ?

  • @bestjavacoding
    @bestjavacoding 6 месяцев назад

    didi palindromic vala que doubly linkedlist se asan se kar sakte hena

  • @Iloverecursion
    @Iloverecursion 3 года назад

    maam just a doubt collection framework se karne se nahi hoga kya?