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

  Рет қаралды 331,551

Apna College

Apna College

2 жыл бұрын

01:24 - Iterative
12:50 - Recursive
Notes & Questions - docs.google.com/document/d/1c...
🔥Java Placement Course : • Introduction to Java L...
🔥Complete C++ Placement Course (Data Structures+Algorithm) : • C++ Full Course | C++...
🔥Telegram: t.me/apnikakshaofficial
🔥Instagram: / dhattarwalaman
My KZfaq Gear 😉: docs.google.com/document/d/1p...

Пікірлер: 190
@vivekbhore5722
@vivekbhore5722 2 жыл бұрын
thanks a lot need more videos on bst, graphs, implementations and algorithms :)
@nn_yt24
@nn_yt24 Жыл бұрын
THE BEST TEACHER THE BEST CONTENT JUST GRATEFUL ❤️
@MH11_optimistic
@MH11_optimistic 2 жыл бұрын
U made my coding journey easy❤️
@manjushapatade5506
@manjushapatade5506 Жыл бұрын
these sessions help me a lot to learn java..hats up guys
@shwetanksudhanshu4383
@shwetanksudhanshu4383 2 жыл бұрын
very nice explanation..please continue this series again
@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
@jayaraj5479
@jayaraj5479 Жыл бұрын
Very well explained!
@aarishfaiz7880
@aarishfaiz7880 4 ай бұрын
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.
@mudassershahzad3628
@mudassershahzad3628 Жыл бұрын
Best explanation 👍
@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
@shamsher556
@shamsher556 2 жыл бұрын
Linked List bahut good laga Thanks you so much didi ❤️❤️😗
@uchihaPrincessSakura
@uchihaPrincessSakura 2 жыл бұрын
Didi nice explanation of Reverse a linked list
@hareeshkumar7570
@hareeshkumar7570 Жыл бұрын
Thank you Ma'am. Make a complete playlist on python please. Your way of teaching is very nice. Rather than others.
@continnum_radhe-radhe
@continnum_radhe-radhe 2 жыл бұрын
Thank you very much 🔥🔥🔥
@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.
@itsfunnytime1693
@itsfunnytime1693 2 жыл бұрын
❤️❤️ you dii bss aap jldi jldi video uploaded kro please 🙏🙏
@md.nahidulalamchowdhury9568
@md.nahidulalamchowdhury9568 2 жыл бұрын
Thanks a lot, mam.
@vaibhavjadhav3791
@vaibhavjadhav3791 Жыл бұрын
Plz Make video session on data structure question..it will clear all remaining doubt.
@mdfoysalahmed4612
@mdfoysalahmed4612 Жыл бұрын
Thanks for the recursive...
@bhavyamendiratta4196
@bhavyamendiratta4196 Ай бұрын
thanks, best explanation
@aniketmishra71
@aniketmishra71 2 жыл бұрын
Thank You!
@shreyasingh4680
@shreyasingh4680 2 жыл бұрын
Thanks di!
@rakeshsahoo2509
@rakeshsahoo2509 Жыл бұрын
Nice , explanation . I was not able to understand previously. Now i am able to understand. God bless you Shradha didi
@onlineworld3838
@onlineworld3838 2 жыл бұрын
Didi I i really inspired from your videos
@dotencoma
@dotencoma Жыл бұрын
Thank You😇
@rattanjotsingh2483
@rattanjotsingh2483 2 жыл бұрын
great!
@explainco.1388
@explainco.1388 2 жыл бұрын
Love from tripura
@helikshukla5841
@helikshukla5841 2 жыл бұрын
Make a video on difference between data science and data analytics👍
@krishapandeyviditya5595
@krishapandeyviditya5595 Жыл бұрын
See on my channel dude
@MajinBuu45
@MajinBuu45 2 жыл бұрын
Thank you
@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 ?
@kainaatmakhani6550
@kainaatmakhani6550 Жыл бұрын
good job
@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.....
@abhayrajbhar9333
@abhayrajbhar9333 2 жыл бұрын
Technology is future.
@killer7495
@killer7495 Жыл бұрын
Apna college is present
@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.
@hometvfirestick
@hometvfirestick 2 жыл бұрын
Thanks
@Piyush71919
@Piyush71919 2 жыл бұрын
Thnx
@surajpandey741
@surajpandey741 6 ай бұрын
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.
@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.
@plutomessi21
@plutomessi21 9 ай бұрын
Thank you so much didi watched alot of videos, asked my friend but still was confused Thank you again 🙏
@shvaibkhan4389
@shvaibkhan4389 Жыл бұрын
Is this complete series with all datastructure and algorithm
@rahulf8775
@rahulf8775 2 жыл бұрын
Tanku
@user-bc6ss6gp3z
@user-bc6ss6gp3z 4 ай бұрын
#Apna College & shradda didi rocks
@sanjaykumar-bb1dj
@sanjaykumar-bb1dj 6 ай бұрын
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 }
@rajeshgoudkatnam1819
@rajeshgoudkatnam1819 Ай бұрын
If you create a node( nextNode) in the loop for each iteration . May be Space complexity will be O(n)
@asadullahallmamun3192
@asadullahallmamun3192 2 жыл бұрын
Need more video and explanation with debug the memory how to work it's help us please didi
@swarna6384
@swarna6384 2 жыл бұрын
Is there any data structure course I this channel?
@Rpshortsvideo1997
@Rpshortsvideo1997 2 жыл бұрын
plz i want more video of java
@abhishek3218
@abhishek3218 2 жыл бұрын
Pls do review of jss noida and gl bajaj
@priyanshu_rana
@priyanshu_rana 2 жыл бұрын
Didi please make a video about rodemap of how to become a software engineer. Please didi
@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.
@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
@satyamevjayate3740
@satyamevjayate3740 2 жыл бұрын
Make a vedio for java programming in moblie
@kanailalmanna5005
@kanailalmanna5005 2 жыл бұрын
GSoC 2022 me select ho paunga keya by only this course ????
@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)
@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?
@sameerkhan-xu4ve
@sameerkhan-xu4ve 2 жыл бұрын
Di apna ek personal channel bnaiye
@oppoplayer7203
@oppoplayer7203 2 жыл бұрын
Please teach c++ in one video full large video by microsoft wali didi only 🤟 pakka
@starngerthingsallseasons2204
@starngerthingsallseasons2204 Жыл бұрын
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
@deepeshraghuwanshi7190
@deepeshraghuwanshi7190 2 жыл бұрын
Why we didn't use collection framework here
@ayshwaryakatheria9366
@ayshwaryakatheria9366 11 ай бұрын
Is there any video on LinkedHashMap
@mahadevhulsure9669
@mahadevhulsure9669 5 ай бұрын
One shot for double linked list please
@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?
@prathamgupta1632
@prathamgupta1632 Жыл бұрын
double aand circular linklist?
@pradyumn8507
@pradyumn8507 2 жыл бұрын
🙏due respect didi❤
@dakshchhabra9950
@dakshchhabra9950 2 жыл бұрын
huge
@ujjawaldewangan8345
@ujjawaldewangan8345 2 жыл бұрын
didi vedio ki frequency badhao because its is better then c++ due to pen paper
@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 ?
@ruchitasalekar4956
@ruchitasalekar4956 2 жыл бұрын
00:10 she was talking about 'Algoexpert'😂
@infinite639
@infinite639 Жыл бұрын
circular and dobuly linked list
@Go_for_it_Lakshya
@Go_for_it_Lakshya 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‼️
@tejasveer9179
@tejasveer9179 2 жыл бұрын
CDAC VIDEO 💯💯
@chemtube3852
@chemtube3852 2 жыл бұрын
Java key liya kunsa book acha hoga??
@komaltiwari1903
@komaltiwari1903 2 ай бұрын
How to reverse linked list using collection framework??
@chemtube3852
@chemtube3852 2 жыл бұрын
Ek video book key upar for coding
@karanbhai3128
@karanbhai3128 Жыл бұрын
Huge respect china❤️
@crackexamvibes8267
@crackexamvibes8267 2 жыл бұрын
Hi everyone
@MH11_optimistic
@MH11_optimistic 2 жыл бұрын
Mam please share most ask coding que for software testing
@krishapandeyviditya5595
@krishapandeyviditya5595 Жыл бұрын
I have check out on mine chnnel..
@VaibhawSingh-hz5tm
@VaibhawSingh-hz5tm 11 ай бұрын
where I get DSA course
@anujnegi8474
@anujnegi8474 2 жыл бұрын
Doubly or circular linked list nhi h playlist m
@gita_singh1228
@gita_singh1228 6 ай бұрын
Nicely 🤦didi
@codition
@codition Жыл бұрын
👍
@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?
@aniketkeshri226
@aniketkeshri226 2 жыл бұрын
when will next video launch??
@anilptl
@anilptl Жыл бұрын
T 2:30 aren't we supposed to do that with only doubly linked list
@tanushree2675
@tanushree2675 11 ай бұрын
solution of previous homework problem
@dancingindia24
@dancingindia24 2 жыл бұрын
how to reverse circular linked list
@rushikeshgavhane4795
@rushikeshgavhane4795 Ай бұрын
Not understand didi.. please explain dry run of code also.. so we can understand.. what is previous Ani current on graph
@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
@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.
@masoomraza5155
@masoomraza5155 2 жыл бұрын
cost is pure red investment
@PiyushAnand-td3fl
@PiyushAnand-td3fl 4 ай бұрын
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 4 ай бұрын
Code showing error
@PiyushAnand-td3fl
@PiyushAnand-td3fl 4 ай бұрын
@@insvikrant2668 but its working fine for me
@vyraldemand
@vyraldemand 2 жыл бұрын
#Vyral demand
@jankiparmar7014
@jankiparmar7014 2 жыл бұрын
Hlo di, how can i fulfill minimum system requirements of windows 10..
@iqbalhossain927
@iqbalhossain927 2 жыл бұрын
Please try to upload lectures a little fast
@user-rg1vp1xr2q
@user-rg1vp1xr2q 15 сағат бұрын
shardha dii❎❎❎ shardha mall😁😁
@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.
@266Pradeep
@266Pradeep Жыл бұрын
In Java push method is there .no need all this.
@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
@vyraldemand
@vyraldemand 2 жыл бұрын
#Vyral_demand
Вечный ДВИГАТЕЛЬ!⚙️ #shorts
00:27
Гараж 54
Рет қаралды 3,2 МЛН
СНЕЖКИ ЛЕТОМ?? #shorts
00:30
Паша Осадчий
Рет қаралды 8 МЛН
We Got Expelled From Scholl After This...
00:10
Jojo Sim
Рет қаралды 65 МЛН
High-Paying Jobs Without A Degree - IITian Shares Skills To Learn
14:19
TRS Clips हिंदी
Рет қаралды 94 М.
Stack Data Structure in One Video | Java Placement Course
36:45
Apna College
Рет қаралды 618 М.
L9. Reverse a LinkedList | Iterative and Recursive
32:42
take U forward
Рет қаралды 80 М.
3 Signs of an Inexperienced Programmer | Avoid these in Tech
9:02
Apna College
Рет қаралды 396 М.
Вечный ДВИГАТЕЛЬ!⚙️ #shorts
00:27
Гараж 54
Рет қаралды 3,2 МЛН