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

  Рет қаралды 371,845

Apna College

Apna College

Күн бұрын

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 KZbin Gear 😉: docs.google.co...

Пікірлер: 194
@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
@nasimaaktar7193
@nasimaaktar7193 2 жыл бұрын
Thank you, mam.If you can please make videos on advanced java. your lecture was very helpful to me.
@SM10170
@SM10170 2 жыл бұрын
Teri mai kya bumar teri
@kishandixit8928
@kishandixit8928 Жыл бұрын
+1
@worldofmanvik6913
@worldofmanvik6913 Жыл бұрын
@@kishandixit8928 yes
@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.
@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.....
@nn_yt24
@nn_yt24 Жыл бұрын
THE BEST TEACHER THE BEST CONTENT JUST GRATEFUL ❤️
@MH11_optimistic
@MH11_optimistic 2 жыл бұрын
U made my coding journey easy❤️
@aarishfaiz7880
@aarishfaiz7880 7 ай бұрын
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).
@kanailalmanna5005
@kanailalmanna5005 2 жыл бұрын
Thank you so much Aman bhaiya , Shradha di and all team members
@explainco.1388
@explainco.1388 2 жыл бұрын
Love from tripura
@hareeshkumar7570
@hareeshkumar7570 Жыл бұрын
Thank you Ma'am. Make a complete playlist on python please. Your way of teaching is very nice. Rather than others.
@itsfunnytime1693
@itsfunnytime1693 2 жыл бұрын
❤️❤️ you dii bss aap jldi jldi video uploaded kro please 🙏🙏
@abhayrajbhar9333
@abhayrajbhar9333 2 жыл бұрын
Technology is future.
@killer7495
@killer7495 2 жыл бұрын
Apna college is present
@shamsher556
@shamsher556 2 жыл бұрын
Linked List bahut good laga Thanks you so much didi ❤️❤️😗
@uchihaPrincessSakura
@uchihaPrincessSakura 2 жыл бұрын
Didi nice explanation of Reverse a linked list
@onlineworld3838
@onlineworld3838 2 жыл бұрын
Didi I i really inspired from your videos
@rajeshgoudkatnam1819
@rajeshgoudkatnam1819 4 ай бұрын
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
@sanjaykumar-bb1dj
@sanjaykumar-bb1dj 9 ай бұрын
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 }
@jayaraj5479
@jayaraj5479 Жыл бұрын
Very well explained!
@mudassershahzad3628
@mudassershahzad3628 2 жыл бұрын
Best explanation 👍
@continnum_radhe-radhe
@continnum_radhe-radhe 2 жыл бұрын
Thank you very much 🔥🔥🔥
@pradyumn8507
@pradyumn8507 2 жыл бұрын
🙏due respect didi❤
@dakshchhabra9950
@dakshchhabra9950 2 жыл бұрын
huge
@vaibhavjadhav3791
@vaibhavjadhav3791 2 жыл бұрын
Plz Make video session on data structure question..it will clear all remaining doubt.
@bhavyamendiratta4196
@bhavyamendiratta4196 3 ай бұрын
thanks, best explanation
@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 Ай бұрын
Sometimes interviewers ask to create a linked list from scratch
@PiyushAnand-td3fl
@PiyushAnand-td3fl 7 ай бұрын
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 6 ай бұрын
Code showing error
@PiyushAnand-td3fl
@PiyushAnand-td3fl 6 ай бұрын
@@insvikrant2668 but its working fine for me
@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 ?
@shvaibkhan4389
@shvaibkhan4389 2 жыл бұрын
Is this complete series with all datastructure and algorithm
@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
@md.nahidulalamchowdhury9568
@md.nahidulalamchowdhury9568 2 жыл бұрын
Thanks a lot, mam.
@priyanshu_rana
@priyanshu_rana 2 жыл бұрын
Didi please make a video about rodemap of how to become a software engineer. Please didi
@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.
@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?
@mdfoysalahmed4612
@mdfoysalahmed4612 2 жыл бұрын
Thanks for the recursive...
@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
@sameerkhan-xu4ve
@sameerkhan-xu4ve 2 жыл бұрын
Di apna ek personal channel bnaiye
@plutomessi21
@plutomessi21 Жыл бұрын
Thank you so much didi watched alot of videos, asked my friend but still was confused Thank you again 🙏
@aniketmishra71
@aniketmishra71 2 жыл бұрын
Thank You!
@dotencoma
@dotencoma Жыл бұрын
Thank You😇
@nishant0312
@nishant0312 Ай бұрын
We can also use collections.reverse(list) method is it correct
@shreyasingh4680
@shreyasingh4680 2 жыл бұрын
Thanks di!
@moju3526
@moju3526 2 жыл бұрын
I love to learn coding (Data Science) but unfortunately I don't have Laptop Or Desktop.
@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)
@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?
@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.
@abhishek3218
@abhishek3218 2 жыл бұрын
Pls do review of jss noida and gl bajaj
@ruchitasalekar4956
@ruchitasalekar4956 2 жыл бұрын
00:10 she was talking about 'Algoexpert'😂
@Rieshu-l9i
@Rieshu-l9i 6 ай бұрын
#Apna College & shradda didi rocks
@rakeshsahoo2509
@rakeshsahoo2509 Жыл бұрын
Nice , explanation . I was not able to understand previously. Now i am able to understand. God bless you Shradha didi
@anujnegi8474
@anujnegi8474 2 жыл бұрын
Doubly or circular linked list nhi h playlist m
@Rpshortsvideo1997
@Rpshortsvideo1997 2 жыл бұрын
plz i want more video of java
@MajinBuu45
@MajinBuu45 2 жыл бұрын
Thank you
@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‼️
@mahadevhulsure9669
@mahadevhulsure9669 8 ай бұрын
One shot for double linked list please
@infinite639
@infinite639 2 жыл бұрын
circular and dobuly linked list
@surajpandey741
@surajpandey741 8 ай бұрын
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.
@rattanjotsingh2483
@rattanjotsingh2483 2 жыл бұрын
great!
@hometvfirestick
@hometvfirestick 2 жыл бұрын
Thanks
@tejasveer9179
@tejasveer9179 2 жыл бұрын
CDAC VIDEO 💯💯
@deepeshraghuwanshi7190
@deepeshraghuwanshi7190 2 жыл бұрын
Why we didn't use collection framework here
@satyamevjayate3740
@satyamevjayate3740 2 жыл бұрын
Make a vedio for java programming in moblie
@crackexamvibes8267
@crackexamvibes8267 2 жыл бұрын
Hi everyone
@oppoplayer7203
@oppoplayer7203 2 жыл бұрын
Please teach c++ in one video full large video by microsoft wali didi only 🤟 pakka
@RitwikMandal
@RitwikMandal 8 күн бұрын
how the recursive function is working in the reverse linked list program can anyone explain please🙏
@kainaatmakhani6550
@kainaatmakhani6550 2 жыл бұрын
good job
@rahulf8775
@rahulf8775 2 жыл бұрын
Tanku
@ujjawaldewangan8345
@ujjawaldewangan8345 2 жыл бұрын
didi vedio ki frequency badhao because its is better then c++ due to pen paper
@kanailalmanna5005
@kanailalmanna5005 2 жыл бұрын
GSoC 2022 me select ho paunga keya by only this course ????
@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.
@Piyush71919
@Piyush71919 2 жыл бұрын
Thnx
@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
@ayshwaryakatheria9366
@ayshwaryakatheria9366 Жыл бұрын
Is there any video on LinkedHashMap
@MH11_optimistic
@MH11_optimistic 2 жыл бұрын
Mam please share most ask coding que for software testing
@krishapandeyviditya5595
@krishapandeyviditya5595 Жыл бұрын
I have check out on mine chnnel..
@komaltiwari1903
@komaltiwari1903 4 ай бұрын
How to reverse linked list using collection framework??
@asadullahallmamun3192
@asadullahallmamun3192 2 жыл бұрын
Need more video and explanation with debug the memory how to work it's help us please didi
@codition
@codition 2 жыл бұрын
👍
@Whyycom
@Whyycom Жыл бұрын
Huge respect china❤️
@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 ?
@prathamgupta1632
@prathamgupta1632 2 жыл бұрын
double aand circular linklist?
@swarna6384
@swarna6384 2 жыл бұрын
Is there any data structure course I this channel?
@chemtube3852
@chemtube3852 2 жыл бұрын
Ek video book key upar for coding
@chemtube3852
@chemtube3852 2 жыл бұрын
Java key liya kunsa book acha hoga??
@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.
@tanushree2675
@tanushree2675 Жыл бұрын
solution of previous homework problem
@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 2 жыл бұрын
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
@rushikeshgavhane4795
@rushikeshgavhane4795 4 ай бұрын
Not understand didi.. please explain dry run of code also.. so we can understand.. what is previous Ani current on graph
@rajput-p-k
@rajput-p-k 8 ай бұрын
Nicely 🤦didi
@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?
@explainco.1388
@explainco.1388 2 жыл бұрын
1st view..
@266Pradeep
@266Pradeep Жыл бұрын
In Java push method is there .no need all this.
@iqbalhossain927
@iqbalhossain927 2 жыл бұрын
Please try to upload lectures a little fast
@jankiparmar7014
@jankiparmar7014 2 жыл бұрын
Hlo di, how can i fulfill minimum system requirements of windows 10..
@aniketkeshri226
@aniketkeshri226 2 жыл бұрын
when will next video launch??
@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
@debjyotidas926
@debjyotidas926 2 жыл бұрын
what is the real name of our didi
@jnaneswaravamsidharMeegada
@jnaneswaravamsidharMeegada 4 ай бұрын
Shradha khapra 😊
@anilptl
@anilptl 2 жыл бұрын
T 2:30 aren't we supposed to do that with only doubly linked list
@dancingindia24
@dancingindia24 2 жыл бұрын
how to reverse circular linked list
@masoomraza5155
@masoomraza5155 2 жыл бұрын
cost is pure red investment
L9. Reverse a LinkedList | Iterative and Recursive
32:42
take U forward
Рет қаралды 133 М.
HAH Chaos in the Bathroom 🚽✨ Smart Tools for the Throne 😜
00:49
123 GO! Kevin
Рет қаралды 12 МЛН
Harsh Truth of Java in 2024! Ft. Ultimate Java Developer @Telusko
28:46
How To Think Like A Programmer
1:00:07
Coding Tech
Рет қаралды 2 МЛН
What is the future of Software Engineering in next 5 years?
19:03
Apna College
Рет қаралды 429 М.