Тёмный
No video :(

Most IMPORTANT Linked List Questions for Placements | Java Full Course 

Apna College
Подписаться 6 млн
Просмотров 298 тыс.
50% 1

Question 1 - 01:43
Question 2 - 13:13
Question 3 - 28:36
Notes : 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 RU-vid Gear 😉: docs.google.co...
Notes of this Lecture:

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

 

21 ноя 2021

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 304   
@pratyushsharma5963
@pratyushsharma5963 6 месяцев назад
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; } }
@riteshgaharwar7822
@riteshgaharwar7822 2 года назад
Difference between old study and modern , pahle coment krne p teacher gussa hote the aur ab khus🤔
@yashupadhyay7188
@yashupadhyay7188 2 года назад
Gussa tab hote the jab unke padhate time comment kro yaha pe padhane ke baad comment aate hain
@growingfire
@growingfire Год назад
@Georgian 😂
@isha_Sharma.0414
@isha_Sharma.0414 2 года назад
Didi best course nd best explanation please complete it♥️🔥.
@jatilyadav4000
@jatilyadav4000 Год назад
Fun fact : Mujhe Java nii aati...
@poojakothawade284
@poojakothawade284 7 месяцев назад
Muze bhi java nhi aati
@debjitmondal5281
@debjitmondal5281 3 месяца назад
han to assembly m kro
@prakritilodhi7743
@prakritilodhi7743 3 месяца назад
😂😂😂😂
@aasthashivhare609
@aasthashivhare609 2 года назад
Thank you so much for this course please complete it ♥️♥️
@pragatii9054
@pragatii9054 15 дней назад
Why my code is not running though I written correct
@bushrahussain3005
@bushrahussain3005 5 месяцев назад
Friend first you have to cover all core points of a topic and then implement one by one that's the easy approach for us all For example like constants, variables, identifiers, pointers, structures, functions, Hopefully you will follow this. Thanks for videos
@adityaverma4369
@adityaverma4369 2 года назад
Mam, we are waiting for your new video to learn to cover all the things.
@vishalkharche9662
@vishalkharche9662 2 года назад
@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 10 месяцев назад
No here we need the previous node to delete the node we want and for the head there no any previous node.
@AmanSharma-zy8yd
@AmanSharma-zy8yd 2 года назад
Mam pls continue java course 🙏🙏🙏🙏
@aviralkaushik9425
@aviralkaushik9425 2 года назад
i never forget the concept ... hare & turtle '😊 THANKYOU SO MUCH DI.
@Now_I_am_all_fired_up
@Now_I_am_all_fired_up 2 года назад
The expression you gave me at the beginning of this vedio is super amazing ---- I Like it ----- simple simple simple simple
@dotencoma
@dotencoma Год назад
😄
@abhishekkamboj7150
@abhishekkamboj7150 2 года назад
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
@tech_g935
@tech_g935 11 месяцев назад
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 8 месяцев назад
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 8 месяцев назад
​@@yashsoni8043 kaha pr aara h?
@yashsoni8043
@yashsoni8043 8 месяцев назад
@@Aryannegi1807 ListNode pr (jb mam ne public ListNode likha to ListNode pe red line aa rhi hai )
@vikask7735
@vikask7735 Месяц назад
Haa to sahi se pdhao Or ache se kro ise dobara😂 Baki u r the sweetest or acha hi padhati ho❤
@rohithbhandari7836
@rohithbhandari7836 2 года назад
For first question If u just want to print then isn't that indextosearch=size-n+1 ?
@AbsolutePain
@AbsolutePain 2 года назад
yep
@ayushnegi675
@ayushnegi675 Год назад
you're right
@AnadiHirpara
@AnadiHirpara 10 месяцев назад
yes bro we shoud write size-n+1 instead of size-n-1
@utkarshshukla4505
@utkarshshukla4505 2 года назад
Thank you for amazing videos can you please cover all java topics with dsa and dynamic programming 🙏
@abhijeetsaroha1902
@abhijeetsaroha1902 2 года назад
ye ques kha krti hn...didi?
@siddharajsinhrathod162
@siddharajsinhrathod162 2 года назад
@@abhijeetsaroha1902 Leetcode pe
@kamertonaudiophileplayer847
@kamertonaudiophileplayer847 2 года назад
It looks my interview questions need to be revised since the video perfectly covered them.
@Anuragkumar-on4mj
@Anuragkumar-on4mj 2 года назад
Thanks dear Aman bhaiya, Your suggestions are ♾️ Valuable🤘🤘🤘
@sweetpatel2169
@sweetpatel2169 2 года назад
Please make a freelancing series ...how to make gig , how to deal with clients kindly make these videos
@vanshikanegi1554
@vanshikanegi1554 11 месяцев назад
1st question lineno. 28 There will not be i
@yashsoni8043
@yashsoni8043 8 месяцев назад
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
@hasnainhaider_96
@hasnainhaider_96 2 года назад
I feel difficulty in built logic in Programming. Java is my first language i want to be good in it...but how?
@truptigorde5294
@truptigorde5294 2 года назад
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
@kunalpatle6465
@kunalpatle6465 2 года назад
Amazing guidelines 🤞
@NerdCultureAnime
@NerdCultureAnime 6 месяцев назад
12:55 It should be size-n+1 instead of size -n-1
@ShrutiChauhan19
@ShrutiChauhan19 Месяц назад
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
@playhaze6965
@playhaze6965 2 года назад
yaar yeh kitni awesome hai
@pritamsaini2918
@pritamsaini2918 2 года назад
16:47 .. the way did says "logic chahe ham kitna b bda bna le lrkinn space nagi use krenge computer ki"
@pruthvirajjadhav9322
@pruthvirajjadhav9322 Год назад
Heyy! Do update the answer to remove the loop soon. Btw crazy playlist. Loving it so far
@amitbhattacharya356
@amitbhattacharya356 2 года назад
You have made DS easy.
@devotion_surya3741
@devotion_surya3741 2 года назад
Hare and Turtle explanation is the best one.
@TechDecryptor
@TechDecryptor 2 года назад
Please make a vedio on BTech +mba vs BBA+ MBA!!!!🙏🙏🙏
@rahulmishra-kj4lg
@rahulmishra-kj4lg Год назад
mam what will we write in main function of these codes?? and mam where are you writting these codes because it is not vs code
@tanishqsingh2554
@tanishqsingh2554 Год назад
how to create that singly linked list on Visual Studio code and can anyone suggest me why the same code as in video is not working on my visual studio code.
@AashutoshBajaj
@AashutoshBajaj Месяц назад
For linked list palindrome ke lie yeh thik hai solution but this uses space import java.util.*; class Node { int data; Node next; public Node(int data) { this.data = data; } } public class Palindrome_LL { static void create(int n, Node head) { Scanner sc = new Scanner(System.in); Node temp = head; for (int i = 1; i = 0; i--) { arr2[i] = arr1[arr1.length - 1 - i]; } System.out.println(Arrays.toString(arr2)); if(Arrays.equals(arr1, arr2)){ System.out.println("Linked List is palindrome"); } else{ System.out.println("Linked List is not palindrome"); } } public static void main(String... args) { Node head = new Node(1); create(5, head); System.out.print("Linked List: "); print(head); System.out.print(" Array is: "); convertArr(head); } }
@arunrawat2142
@arunrawat2142 2 года назад
please also make tutorials for doubly, circular linkedList
@ritamarya384
@ritamarya384 Год назад
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.
@SachinSharma590
@SachinSharma590 2 года назад
teaching way is awesome
@mynameisanilsharma
@mynameisanilsharma Год назад
tell me which code editor do you use please
@ZK-nc6wb
@ZK-nc6wb 2 года назад
Plz pura code likh dya krye mera ouput ni ho rha error a rha h
@hemantgupta1215
@hemantgupta1215 2 года назад
please upload more videos to cover all java, we are waiting please do it...
@tanishqverma6764
@tanishqverma6764 2 года назад
Please Microsoft ki eligibility and hiring process ke upar ek detailed video banaiye na. Please
@AdityaSingh-oq2vu
@AdityaSingh-oq2vu 2 года назад
maam that friend's talk was very emotional
@nikhilkoshti5390
@nikhilkoshti5390 Месяц назад
Finding middle using size takes less time didi. size = 4ms and hare&turtle = 6ms
@user-bc6ss6gp3z
@user-bc6ss6gp3z 5 месяцев назад
#Apna College & shradda didi rocks, god bless you & all 👍
@creativitypoint7046
@creativitypoint7046 2 года назад
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 ?
@jatilyadav4000
@jatilyadav4000 Год назад
great channel for preparation for exams
@wasimalam3034
@wasimalam3034 Год назад
Great lecture for me... thank you ma'am....
@GamingProgrammerx
@GamingProgrammerx 2 года назад
Allah Pak aap ko hamesha Salamat rakhe ameen 👐 ✧༺♥༻✧
@yashbhargava3552
@yashbhargava3552 2 года назад
Literally made it easy........Hats off to you....
@pawangawale9053
@pawangawale9053 Месяц назад
Define Main Function Karke
@shwetanksudhanshu4383
@shwetanksudhanshu4383 2 года назад
great lecture..THANKYOU ....request you to please continue this amazing series.
@rohanyadav6295
@rohanyadav6295 2 месяца назад
mam , we can solve it using collection framework as well to make it more convenient ,, than why from scratch method
@SATHYAMURTHYR-zn4rz
@SATHYAMURTHYR-zn4rz Год назад
33.30 --> Detection of Loop in a LinkedList
@asadumarshorts
@asadumarshorts 2 года назад
Muskil hai leakin na mumkin nhin no PC and laptop but which your videos
@blyatman4
@blyatman4 Год назад
can we js reverse the given linked list and then search of the n-1th index in the reverse linked list for q1?
@achievers19
@achievers19 2 года назад
Di how to recover dcim folder in android mi. I deleted all pics and videos in file manager by mistake
@vaibhavbarman5836
@vaibhavbarman5836 2 года назад
Didi ap bahut achcha padhati hai, please python per 4 se 5 hours ka video banayiye .
@morningstar3982
@morningstar3982 2 года назад
Why not using collection frameworks?
@tejasveer9179
@tejasveer9179 2 года назад
CDAC video 🔥🔥
@TheMinuteKnowledge
@TheMinuteKnowledge 2 года назад
won't it be easy to convert LinkedList to string and then check for palindrome?!!!
@prayasmangrati9918
@prayasmangrati9918 Месяц назад
Yes it will be but that's gonna use extra memory space and increase the space complexity whereas this method won't use that extra memory space.
@nehatiwari3568
@nehatiwari3568 2 года назад
Pls upload videos regularly. Pls pls I am waiting
@jenkar5716
@jenkar5716 Год назад
Can we use the direct collection framework to solve Linked List or any data structures (other than tree,graphs hashmaps)to solve problems? @Apna College
@Godl_Damon
@Godl_Damon Год назад
on platforms...No and in placement they ask you to implement from scratch so just using collection framework isnt enough
@edu-amplifier2451
@edu-amplifier2451 2 года назад
Didi please make a review video on NIT Jalandhar. 🙏
@masoomraza5155
@masoomraza5155 2 года назад
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 2 года назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-AChFRpLhPlk.html C language
@AmitKumar-cp1oz
@AmitKumar-cp1oz 2 года назад
get a pwd certificate.
@ankit4701
@ankit4701 2 года назад
@@AmitKumar-cp1oz nice 🙂
@dukesoni5425
@dukesoni5425 2 года назад
Thanku didi for everything
@shrikantahire2003
@shrikantahire2003 Год назад
Very Helpful, making things simple to learn by the way of teaching ❣❣
@yashsoni8043
@yashsoni8043 8 месяцев назад
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
@user-ld1lm6km9i
@user-ld1lm6km9i Год назад
where can i found notes for this lecture
@PrasadShevane
@PrasadShevane Год назад
docs.google.com/document/d/1gZ40CS3b2Lzm1c2o82NKJTmk__M6UTQMucS9bmcnfAQ/edit?usp=sharing
@yashsoni8043
@yashsoni8043 8 месяцев назад
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
@rupesh2586
@rupesh2586 Год назад
your code is failed on geeksforgeek palindone problem. The program is compiled sucessfully but in testcase the program gives the error... plz check it...
@rupesh2586
@rupesh2586 Год назад
@Apna college
@invisible2795
@invisible2795 2 года назад
Please make a video on Java android development course
@amansayyad7286
@amansayyad7286 2 года назад
Didi please explain in short to cut the loop.
@11223a3b
@11223a3b 2 года назад
In Java, we have built-in methods. Why do we need to create a custom linked list with pointers? Am I missing something?
@tanmaysinghal6103
@tanmaysinghal6103 2 года назад
she taught linked list implementation from scratch and continuing using the same for better understanding
@adityasahay14
@adityasahay14 2 года назад
LeetCode ka sahi prayog...
@masoomraza5155
@masoomraza5155 2 года назад
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
@shubhammahajan8902
@shubhammahajan8902 Год назад
when n==size , head can't be removed and answer is whole list
@parveezkhan9457
@parveezkhan9457 2 года назад
What abt double linked list and circulr linkedlist
@sahilgupta7001
@sahilgupta7001 Год назад
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
@t0ckS1ck
@t0ckS1ck 2 года назад
Code for deleting the cycle is yet not updated.... Kindly update asap.
@bestjavacoding
@bestjavacoding 19 дней назад
didi palindromic vala que doubly linkedlist se asan se kar sakte hena
@dcn467
@dcn467 11 месяцев назад
In second question there should be (here!= null not here.next.next!=null)
@AnadiHirpara
@AnadiHirpara 10 месяцев назад
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 Месяц назад
​@@AnadiHirpara same doubtt...that shraddha may have mistaken it...u r correct
@shaileshhacker
@shaileshhacker 2 года назад
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 года назад
Thanks bro
@prabhav-123
@prabhav-123 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 года назад
@@prabhav-123 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😊
@honeysshorts_4118
@honeysshorts_4118 2 года назад
what a great playlist thank you shradha didi
@xgamer5410
@xgamer5410 2 месяца назад
Removing Loops in a Linked List. Didi Need video plz
@bikramjitroy3420
@bikramjitroy3420 2 года назад
didi regular video upload karo please ....aise video agr upload karoge to bohot din lag jayega
@kashyapchavhan8221
@kashyapchavhan8221 2 года назад
Removing Loops in a Linked List. Didi please solution update kardo
@user-cm6sk8zc5j
@user-cm6sk8zc5j 6 месяцев назад
you have not mentioned code for removing a loop in linked list
@atishayjain5620
@atishayjain5620 Месяц назад
Mam pls provide answer to removing loop. It is not updated
@abhijitpal5700
@abhijitpal5700 2 года назад
Anybody having the solution for adding and removing the cycle without much loss of data, please share.
@shwetajaiswal2148
@shwetajaiswal2148 Год назад
I don't see the cycle detection logic updated in notes here
@sarthakugale1794
@sarthakugale1794 Год назад
excellent video i seen ever 🥰
@BikashKumarNayak-io5tx
@BikashKumarNayak-io5tx Год назад
mam please upload the video for Removing the loop in a LinkedList
@BRUHXGHNNCSAYJOL
@BRUHXGHNNCSAYJOL 9 месяцев назад
In Q.2, according to your code, 1 -> 2 -> 1-> 1 is a palindrome, but it is not, please somesone explain me how to fix that error This error is on 32:07
@yashsoni8043
@yashsoni8043 8 месяцев назад
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
@suhailteli6403
@suhailteli6403 7 месяцев назад
ListNode Matt likho sirf Node likho phir error nhi aayege
@Iloverecursion
@Iloverecursion 2 года назад
maam just a doubt collection framework se karne se nahi hoga kya?
@ujjawaldewangan8345
@ujjawaldewangan8345 2 года назад
Didi question ko dekh ke variable kaise ye analysis krna bhi btaya kre apne video me plzzz
@yashikulshrestha700
@yashikulshrestha700 Год назад
How to find the second middle element of the linked list
@captainayaan
@captainayaan 2 года назад
How to run such programs? I don't understand.
@Anonymouss670
@Anonymouss670 7 месяцев назад
Did anyone get to know how to remove the loop from the linked list? Of third question?
@Gg69696
@Gg69696 Год назад
41:41 ma'am should have used | | instead of && 😅
@yourdad-cf5zr
@yourdad-cf5zr 5 месяцев назад
Please update the answer of removing list in notes! 😄
@zaidlm10
@zaidlm10 5 месяцев назад
Plz do upload the solution for loop detection and removal
@ATRANGI_bhai.
@ATRANGI_bhai. 2 года назад
Didi plz video bnayeeee topic beginner lvl k computer user jisko excel bhi nhi ata meri tarah 😅😅😅😅
@newvideo964
@newvideo964 2 года назад
Change the editor or compiler
@paragmahale4312
@paragmahale4312 2 года назад
Can't thank you all enough....!!!!
Далее
What is Docker? Simply Explained by Shradha Ma'am
19:32
Coding Interviews Be Like
5:31
Просмотров 6 млн
7 Days Stranded In A Cave
17:59
Просмотров 42 млн
The Greenwich Meridian is in the wrong place
25:07
Просмотров 754 тыс.