Тёмный
No video :(

How to Reverse a Linked List? | Iterative + Recursive | Java Placement Course 

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

01:24 - Iterative
12:50 - Recursive
Notes & Questions - 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...

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

 

18 ноя 2021

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 192   
@arunrawat2142
@arunrawat2142 2 года назад
Pls Help: Is LinkedList-Scratch necessary or collections are enough?
@user-xi5wb3rn7u
@user-xi5wb3rn7u 2 года назад
Look! for better understanding the concept of how things are working in the background you must know it from scratch this will be very helpful for you for solving questions on programming.
@supraja8286
@supraja8286 2 года назад
@@user-xi5wb3rn7u In coding round for placements can we use collections.I solved this by traversing it from reverse and printed.Is it okay.
@vickysharma5997
@vickysharma5997 19 дней назад
Sometimes interviewers ask to create a linked list from scratch
@nn_yt24
@nn_yt24 Год назад
THE BEST TEACHER THE BEST CONTENT JUST GRATEFUL ❤️
@vivekbhore5722
@vivekbhore5722 2 года назад
thanks a lot need more videos on bst, graphs, implementations and algorithms :)
@manjushapatade5506
@manjushapatade5506 Год назад
these sessions help me a lot to learn java..hats up guys
@MH11_optimistic
@MH11_optimistic 2 года назад
U made my coding journey easy❤️
@sameerhussain1112
@sameerhussain1112 Год назад
mam thank you so much for this wonderful course . i studied my whole DS course from your videos . mam sending you a lot of love from Pakistan.
@nasimaaktar7193
@nasimaaktar7193 2 года назад
Thank you, mam.If you can please make videos on advanced java. your lecture was very helpful to me.
@SM10170
@SM10170 Год назад
Teri mai kya bumar teri
@kishandixit8928
@kishandixit8928 Год назад
+1
@worldofmanvik6913
@worldofmanvik6913 Год назад
@@kishandixit8928 yes
@5ksubscriberschallengewith675
@5ksubscriberschallengewith675 2 года назад
Didi aapka c++ course bhot acha hai but usme last ki kuch videos hide hai aur last ki kuch mujhe show nhi ho rhi what can I do? Please help me.
@susheellattala9498
@susheellattala9498 Год назад
for (int i =list.size()-1; i >= 0 ; i--) { int temp=list.get(i) ; list.addLast(temp); list.remove(i); } System.out.println(list); //this is also working in Single ended Linked list
@Gg69696
@Gg69696 Год назад
Wah genius !! !! 😮
@Gg69696
@Gg69696 Год назад
Ek baar batao mera code toh instead of answer... Garbage value return kr rha hai 😢 Kaise Roku isse..... Mai bhi vs Code use krta hoon.....
@aarishfaiz7880
@aarishfaiz7880 6 месяцев назад
Mam You are Really the best Instructor, Really your way makes DSA very easy Hope I will Meet you some day to say this to you.
@sindhujamaram5845
@sindhujamaram5845 2 года назад
Very nice explanation didi, please continue the java placement series (trees, graphs).
@surajpandey741
@surajpandey741 7 месяцев назад
when i am soving problems of leet code or hackerrank i am not able to solve the problems with the help of collections its showing error.
@anujnegi8474
@anujnegi8474 2 года назад
Doubly or circular linked list nhi h playlist m
@abhayrajbhar9333
@abhayrajbhar9333 2 года назад
Technology is future.
@killer7495
@killer7495 2 года назад
Apna college is present
@kanailalmanna5005
@kanailalmanna5005 2 года назад
Thank you so much Aman bhaiya , Shradha di and all team members
@hareeshkumar7570
@hareeshkumar7570 Год назад
Thank you Ma'am. Make a complete playlist on python please. Your way of teaching is very nice. Rather than others.
@herryhar3407
@herryhar3407 2 года назад
hey, I completed my bachelor's degree in mechanical engineering (2021 pass out), now for the master study in the USA I have to apply in MS SOFTWARE ENGINEERING, but I don't have any idea where to start learning it. I learned Basic C programming in my 1st year of college like prime numbers, basic maths, pattern making, etc. So suggest me a path to learn it. And which things I have to learn for MS SOFTWARE ENGINEERING.
@krishapandeyviditya5595
@krishapandeyviditya5595 Год назад
May I dear?
@krishapandeyviditya5595
@krishapandeyviditya5595 Год назад
Ab nhi denge wala scene.. Abhi nhi tih kvi nhi?
@037_cse_jananir7
@037_cse_jananir7 Год назад
have u joined university?
@shamsher556
@shamsher556 2 года назад
Linked List bahut good laga Thanks you so much didi ❤️❤️😗
@itsfunnytime1693
@itsfunnytime1693 2 года назад
❤️❤️ you dii bss aap jldi jldi video uploaded kro please 🙏🙏
@vaibhavjadhav3791
@vaibhavjadhav3791 Год назад
Plz Make video session on data structure question..it will clear all remaining doubt.
@SohailAhmed-sy8xh
@SohailAhmed-sy8xh 2 года назад
make Video on the topic ke Software Engineering men jo minor or compulsory subjects hai unka koi faeeda hai ? Like Calculs , Basic Electronics , Digital logic Desing , Discrete Structure and Probility Statsitics ?
@sanjaykumar-bb1dj
@sanjaykumar-bb1dj 8 месяцев назад
If you initiate your currentNode from head, then there is no need to check corner cases for an empty list or a list with only one element public static void reverseLLIteratively(){ Node previousNode = null; Node currentNode = head; // Starts from the head of the list Node nextNode ; while (currentNode != null){ nextNode = currentNode.next; // Store the next node in the list currentNode.next = previousNode; // Reverse the pointer // update previousNode = currentNode; // Update the previous node currentNode = nextNode; // Move to the next node } head = previousNode; // Update the head to the new start of the reversed list }
@nishant0312
@nishant0312 23 дня назад
We can also use collections.reverse(list) method is it correct
@uchihaPrincessSakura
@uchihaPrincessSakura 2 года назад
Didi nice explanation of Reverse a linked list
@helikshukla5841
@helikshukla5841 2 года назад
Make a video on difference between data science and data analytics👍
@krishapandeyviditya5595
@krishapandeyviditya5595 Год назад
See on my channel dude
@PiyushAnand-td3fl
@PiyushAnand-td3fl 6 месяцев назад
12:20 easy logic --> public void reverseList(){ if(head == null || head.next == null){ return; } Node prevNode = null; Node currNode = head; Node nextNode = null; while(currNode != null){ nextNode = currNode.next; currNode.next = prevNode; prevNode = currNode; currNode = nextNode; } head = prevNode; }
@insvikrant2668
@insvikrant2668 5 месяцев назад
Code showing error
@PiyushAnand-td3fl
@PiyushAnand-td3fl 5 месяцев назад
@@insvikrant2668 but its working fine for me
@shvaibkhan4389
@shvaibkhan4389 Год назад
Is this complete series with all datastructure and algorithm
@explainco.1388
@explainco.1388 2 года назад
Love from tripura
@onlineworld3838
@onlineworld3838 2 года назад
Didi I i really inspired from your videos
@kanailalmanna5005
@kanailalmanna5005 2 года назад
GSoC 2022 me select ho paunga keya by only this course ????
@rajeshgoudkatnam1819
@rajeshgoudkatnam1819 3 месяца назад
If you create a node( nextNode) in the loop for each iteration . May be Space complexity will be O(n)
@shwetanksudhanshu4383
@shwetanksudhanshu4383 2 года назад
very nice explanation..please continue this series again
@pradyumn8507
@pradyumn8507 2 года назад
🙏due respect didi❤
@dakshchhabra9950
@dakshchhabra9950 2 года назад
huge
@CoddingMasti
@CoddingMasti 2 года назад
Hello didi Mere college me computer Science and engineering && computer Science and design ye 2 couse he to isme kitna difference Hoga ? Which is better ?
@RajveerSingh-pr2ol
@RajveerSingh-pr2ol 2 года назад
Di ek video C++ Vs Java
@sameertambolitybcs6338
@sameertambolitybcs6338 2 года назад
There is no need,Java❤️
@ireshkalki
@ireshkalki 2 года назад
C++ is the best boi
@sameertambolitybcs6338
@sameertambolitybcs6338 2 года назад
@@ireshkalki you are on wrong path.
@ireshkalki
@ireshkalki 2 года назад
@@sameertambolitybcs6338 nope bro, u will not decide for me to take which path
@sameertambolitybcs6338
@sameertambolitybcs6338 2 года назад
@@ireshkalki So you'll also not decide and say that c++ is best and all that.
@deepeshraghuwanshi7190
@deepeshraghuwanshi7190 2 года назад
Why we didn't use collection framework here
@adityadhoble7396
@adityadhoble7396 2 года назад
Which book should I refer for JAVA as a beginner ?
@siddharthsingh2859
@siddharthsingh2859 2 года назад
Brother, I think if you follow some tutorial or playlist from any YT channel, that's enough, book not needed.(its my personal opinion)
@mudassershahzad3628
@mudassershahzad3628 2 года назад
Best explanation 👍
@jayaraj5479
@jayaraj5479 Год назад
Very well explained!
@Mlletubaa-o
@Mlletubaa-o Год назад
mam next time agr aap reverse link list pr vedio bnaye toh pls orginal link list jese dikhti hain na like boxes proper or address dale hue hote hain pls proper manner main smjhna kyunki thoda typical tpoic lgta h mujhe ye thoda understanding bhi deeply ho jati hain orginal linklist se may be
@moju3526
@moju3526 2 года назад
I love to learn coding (Data Science) but unfortunately I don't have Laptop Or Desktop.
@priyanshu_rana
@priyanshu_rana 2 года назад
Didi please make a video about rodemap of how to become a software engineer. Please didi
@prathamgupta1632
@prathamgupta1632 Год назад
double aand circular linklist?
@talhatanveer8719
@talhatanveer8719 2 года назад
private void printreverse(Node current) { // TODO Auto-generated method stub if(current!=null) { printreverse(current.getNext()); System.out.println(current.getData()); } this is a sharp way to print a linked list in reverse oder
@krishapandeyviditya5595
@krishapandeyviditya5595 Год назад
Hein.. Kch vi.. Chide chota bcho ke sath hi chota bnna padata hawe
@rakeshsahoo2509
@rakeshsahoo2509 Год назад
Nice , explanation . I was not able to understand previously. Now i am able to understand. God bless you Shradha didi
@16avikasgupta70
@16avikasgupta70 2 года назад
One thing that i felt was that you were explaining how to solve this problem rather than explaining the intution behind it please try to inculcate that aslo otherwise very good explaination
@krishapandeyviditya5595
@krishapandeyviditya5595 Год назад
Kaisa intuition chahiye via aapko?
@ruchitasalekar4956
@ruchitasalekar4956 2 года назад
00:10 she was talking about 'Algoexpert'😂
@jankiparmar7014
@jankiparmar7014 2 года назад
Hlo di, how can i fulfill minimum system requirements of windows 10..
@komaltiwari1903
@komaltiwari1903 3 месяца назад
How to reverse linked list using collection framework??
@continnum_radhe-radhe
@continnum_radhe-radhe 2 года назад
Thank you very much 🔥🔥🔥
@plutomessi21
@plutomessi21 11 месяцев назад
Thank you so much didi watched alot of videos, asked my friend but still was confused Thank you again 🙏
@mdfoysalahmed4612
@mdfoysalahmed4612 2 года назад
Thanks for the recursive...
@crackexamvibes8267
@crackexamvibes8267 2 года назад
Hi everyone
@bhavyamendiratta4196
@bhavyamendiratta4196 2 месяца назад
thanks, best explanation
@tejasveer9179
@tejasveer9179 2 года назад
CDAC VIDEO 💯💯
@NadeemKhan-vp5qx
@NadeemKhan-vp5qx 2 года назад
Is this method is correct for reversing a linked list ? void reverseIterate() { Node current = head; Node prev = null; while(current != null) { Node nextNode = current.next; current.next = prev; prev = current; current = nextNode; } head = prev; }
@sankalpsoni5021
@sankalpsoni5021 2 года назад
Yeah... Its correct
@abdurrab8947
@abdurrab8947 2 года назад
Much better than what she told in video.
@aniketsrivastava1870
@aniketsrivastava1870 Год назад
kay likha h pura blunder🤣🤣🤣
@AmitRaj-ds7tx
@AmitRaj-ds7tx Год назад
​@@aniketsrivastava1870 go and learn 10th you don't deserve coding 😂
@aniketsrivastava1870
@aniketsrivastava1870 Год назад
@@AmitRaj-ds7tx daswi fail tu bataega mujhe coding woh toh mene sarcasm mein likh diya tha I didn't mean it ja jake for loop padh smjha unpadh
@shubhiofficial1629
@shubhiofficial1629 2 года назад
Didi I took bsc maths in Hindu College . Should I learn coding and how it will help me
@hjhjkoko1955
@hjhjkoko1955 2 года назад
Aur lo bsc 😂😂😂😂😂
@shubhiofficial1629
@shubhiofficial1629 2 года назад
@@hjhjkoko1955 tere pas kya h
@ujjawaldewangan8345
@ujjawaldewangan8345 2 года назад
didi vedio ki frequency badhao because its is better then c++ due to pen paper
@Ayush-mn8jz
@Ayush-mn8jz Год назад
This playlist looks randomly arranged. Can anyone please let me know which video is first to watch in the playlist, which video is second, till last video. I know the content is good.
@oppoplayer7203
@oppoplayer7203 2 года назад
Please teach c++ in one video full large video by microsoft wali didi only 🤟 pakka
@manandeedwaniya9756
@manandeedwaniya9756 2 года назад
Didi plese make video , What is coding Some basic knowledge on coding how can we make apps ( From A to Z ) PLESE.
@rushikeshgavhane4795
@rushikeshgavhane4795 3 месяца назад
Not understand didi.. please explain dry run of code also.. so we can understand.. what is previous Ani current on graph
@abhishek3218
@abhishek3218 2 года назад
Pls do review of jss noida and gl bajaj
@ayshwaryakatheria9366
@ayshwaryakatheria9366 Год назад
Is there any video on LinkedHashMap
@user-bc6ss6gp3z
@user-bc6ss6gp3z 5 месяцев назад
#Apna College & shradda didi rocks
@hopes_alive-100
@hopes_alive-100 2 года назад
⚠️ Didi, MACHINE LEARNING bhi padhana start kariye please channel p 🥺🥺‼️ Edit - bhut jyadaa gratitude feel karege, Aman bhaiya aur aapke liye. Please please please‼️
@Rpshortsvideo1997
@Rpshortsvideo1997 2 года назад
plz i want more video of java
@mahadevhulsure9669
@mahadevhulsure9669 7 месяцев назад
One shot for double linked list please
@sameerkhan-xu4ve
@sameerkhan-xu4ve 2 года назад
Di apna ek personal channel bnaiye
@chemtube3852
@chemtube3852 2 года назад
Java key liya kunsa book acha hoga??
@anilptl
@anilptl 2 года назад
T 2:30 aren't we supposed to do that with only doubly linked list
@swarna6384
@swarna6384 2 года назад
Is there any data structure course I this channel?
@VaibhawSingh-hz5tm
@VaibhawSingh-hz5tm Год назад
where I get DSA course
@infinite639
@infinite639 2 года назад
circular and dobuly linked list
@ieltsbaba8400
@ieltsbaba8400 2 года назад
How in recursion java knows who is prev and next element? Can anyone please explain? In recursion we haven't modify the prev and next pointers then how it will know the links? please explain.
@krishapandeyviditya5595
@krishapandeyviditya5595 Год назад
Mai insaan hi hu.. May I do ielts baba dutiuyane?
@asadullahallmamun3192
@asadullahallmamun3192 2 года назад
Need more video and explanation with debug the memory how to work it's help us please didi
@satyamevjayate3740
@satyamevjayate3740 2 года назад
Make a vedio for java programming in moblie
@md.nahidulalamchowdhury9568
@md.nahidulalamchowdhury9568 2 года назад
Thanks a lot, mam.
@Abaddon-u1i
@Abaddon-u1i Год назад
I understood the iterative approach but didn't understand the recursive one, I guess I'm just too dumb to understand recursion.
@Gg69696
@Gg69696 Год назад
Ma'am ne thik se samjhaya hi nhi 😢
@dotencoma
@dotencoma Год назад
Thank You😇
@utkarshtiwari1769
@utkarshtiwari1769 2 года назад
Why we are doing Question in online compiler it is gating so difficult to us to find that same question And then we don't have record of it Already classes ban chuki hai first question of this video ab usmein shru se start ku nahi hai pahle se define hai Ab agar ham jaenge Apne offline compiler jo hamne download kar rakha usmein work Karen acche se tu bahut bahut difficult pad raha hai ham logon Ko Palli hi nahi padh raha question
@MH11_optimistic
@MH11_optimistic 2 года назад
Mam please share most ask coding que for software testing
@krishapandeyviditya5595
@krishapandeyviditya5595 Год назад
I have check out on mine chnnel..
@shreyasingh4680
@shreyasingh4680 2 года назад
Thanks di!
@aniketmishra71
@aniketmishra71 2 года назад
Thank You!
@tanushree2675
@tanushree2675 Год назад
solution of previous homework problem
@karanbhai3128
@karanbhai3128 Год назад
Huge respect china❤️
@aniketkeshri226
@aniketkeshri226 2 года назад
when will next video launch??
@dancingindia24
@dancingindia24 2 года назад
how to reverse circular linked list
@kainaatmakhani6550
@kainaatmakhani6550 Год назад
good job
@mohdsameer2445
@mohdsameer2445 Год назад
it was little confusing , should make another video with better explanations tbh mam
@kanailalmanna5005
@kanailalmanna5005 2 года назад
Didi Mai biology background se hu, only by this course is it possible to get select in GSoC , please help me to this ,
@siddharthsingh2859
@siddharthsingh2859 2 года назад
"only by this course" - NO
@siddharthsingh2859
@siddharthsingh2859 2 года назад
aur v cheezen padhna padega - Go do a google search for that
@chemtube3852
@chemtube3852 2 года назад
Ek video book key upar for coding
@266Pradeep
@266Pradeep Год назад
In Java push method is there .no need all this.
@masoomraza5155
@masoomraza5155 2 года назад
my limit is that i can grasp algorithms of cormen understand kevin naughton jr youtuber problems and data structures of cormen 100% if you are 200% then only you are better than me
@Sachin-wt9eo
@Sachin-wt9eo 2 года назад
दीदी, Software Engineer students को placement‌ के लिए अलग से पढ़ने की जरूरत क्यों होती है?? क्या college study students को placement‌ ready नहीं बनाती है??
@ashishkumar-fd4gp
@ashishkumar-fd4gp 2 года назад
nhi bhai nhi bnte
@Sachin-wt9eo
@Sachin-wt9eo 2 года назад
@@ashishkumar-fd4gp kyon bhaiya
@ashishkumar-fd4gp
@ashishkumar-fd4gp 2 года назад
@@Sachin-wt9eo kyuki woh updated course nhi hta h jo company mein use hta h comapnies abh new software new chijo mein aage ah gyi h or wohi clg ki book abhi bhi 7/8 saal purni chij prda rhi h
@MajinBuu45
@MajinBuu45 2 года назад
Thank you
@masoomraza5155
@masoomraza5155 2 года назад
cost is pure red investment
@hometvfirestick
@hometvfirestick 2 года назад
Thanks
@sharique7687
@sharique7687 2 года назад
Can anyone please tell me the name of her?
@edu-amplifier2451
@edu-amplifier2451 2 года назад
Please make a review video on NIT Jalandhar. 🙏
@dakshchhabra9950
@dakshchhabra9950 2 года назад
no
@edu-amplifier2451
@edu-amplifier2451 2 года назад
@@dakshchhabra9950 Why no?
Далее
معركة من أجل العصيدة 👧ضد🪳
00:26
아이스크림으로 진짜 친구 구별하는법
00:17
L9. Reverse a LinkedList | Iterative and Recursive
32:42
Python Decorators in 15 Minutes
15:14
Просмотров 436 тыс.
معركة من أجل العصيدة 👧ضد🪳
00:26