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
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 }
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
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 ?
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
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.
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.
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.
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
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 ?
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; }
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
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.
these sessions help me a lot to learn java..hats up guys
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.
thanks a lot
need more videos on bst, graphs, implementations and algorithms :)
U made my coding journey easy❤️
SHORTCUT:
LinkedList x = new LinkedList();
x.add
x.add
x.add
use- Collections.reverse(x);
It will reverse linked list in one step...
Then why learn full implementation
Thank You Ma'am 🙏🙏🙏🙏🙏
THE BEST TEACHER
THE BEST CONTENT
JUST GRATEFUL ❤️
❤️❤️ you dii bss aap jldi jldi video uploaded kro please 🙏🙏
Thank you, mam.If you can please make videos on advanced java. your lecture was very helpful to me.
Teri mai kya bumar teri
+1
@@kishandixit8928 yes
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
Wah genius !! !! 😮
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.....
Didi I i really inspired from your videos
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
}
Thank you so much Aman bhaiya , Shradha di and all team members
Linked List bahut good laga
Thanks you so much didi ❤️❤️😗
Very nice explanation didi, please continue the java placement series (trees, graphs).
Didi nice explanation of Reverse a linked list
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;
}
Code showing error
@@insvikrant2668 but its working fine for me
Love from tripura
If you create a node( nextNode) in the loop for each iteration . May be Space complexity will be O(n)
Thank you very much 🔥🔥🔥
thanks, best explanation
Best explanation 👍
Very well explained!
Thank you Ma'am.
Make a complete playlist on python please.
Your way of teaching is very nice.
Rather than others.
Thanks for the recursive...
Technology is future.
Apna college is present
very nice explanation..please continue this series again
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
Di apna ek personal channel bnaiye
Thanks a lot, mam.
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 ?
Thank you so much didi watched alot of videos, asked my friend but still was confused
Thank you again 🙏
Is this complete series with all datastructure and algorithm
Thanks di!
#Apna College & shradda didi rocks
Thank You😇
Make a video on difference between data science and data analytics👍
See on my channel dude
Nice , explanation . I was not able to understand previously. Now i am able to understand. God bless you Shradha didi
I love to learn coding (Data Science) but unfortunately I don't have Laptop Or Desktop.
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
Kaisa intuition chahiye via aapko?
One shot for double linked list please
didi vedio ki frequency badhao
because its is better then c++ due to pen paper
Thank You!
plz i want more video of java
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
Hein.. Kch vi.. Chide chota bcho ke sath hi chota bnna padata hawe
Please teach c++ in one video full large video by microsoft wali didi only 🤟 pakka
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.
Didi please make a video about rodemap of how to become a software engineer. Please didi
Make a vedio for java programming in moblie
Pls do review of jss noida and gl bajaj
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.
May I dear?
Ab nhi denge wala scene.. Abhi nhi tih kvi nhi?
have u joined university?
circular and dobuly linked list
Didi plese make video , What is coding
Some basic knowledge on coding how can we make apps ( From A to Z )
PLESE.
Thank you
GSoC 2022 me select ho paunga keya by only this course ????
Doubly or circular linked list nhi h playlist m
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.
Is there any video on LinkedHashMap
Which book should I refer for JAVA as a beginner ?
Brother, I think if you follow some tutorial or playlist from any YT channel, that's enough, book not needed.(its my personal opinion)
Thanks
Pls Help: Is LinkedList-Scratch necessary or collections are enough?
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.
@@user-xi5wb3rn7u In coding round for placements can we use collections.I solved this by traversing it from reverse and printed.Is it okay.
Sometimes interviewers ask to create a linked list from scratch
Di ek video C++ Vs Java
There is no need,Java❤️
C++ is the best boi
@@ireshkalki you are on wrong path.
@@sameertambolitybcs6338 nope bro, u will not decide for me to take which path
@@ireshkalki So you'll also not decide and say that c++ is best and all that.
Why we didn't use collection framework here
good job
00:10 she was talking about 'Algoexpert'😂
How to reverse linked list using collection framework??
⚠️ Didi, MACHINE LEARNING bhi padhana start kariye please channel p
🥺🥺‼️
Edit - bhut jyadaa gratitude feel karege, Aman bhaiya aur aapke liye. Please please please‼️
Java key liya kunsa book acha hoga??
Mam please share most ask coding que for software testing
I have check out on mine chnnel..
Need more video and explanation with debug the memory how to work it's help us please didi
Huge respect china❤️
Ek video book key upar for coding
great!
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.
CDAC VIDEO 💯💯
how the recursive function is working in the reverse linked list program can anyone explain please🙏
Is there any data structure course I this channel?
double aand circular linklist?
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
solution of previous homework problem
We can also use collections.reverse(list) method is it correct
Thnx
In Java push method is there .no need all this.
Tanku
Hi everyone
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
?
Not understand didi.. please explain dry run of code also.. so we can understand.. what is previous Ani current on graph
Didi I took bsc maths in Hindu College . Should I learn coding and how it will help me
Aur lo bsc 😂😂😂😂😂
@@hjhjkoko1955 tere pas kya h
it was little confusing , should make another video with better explanations tbh mam
how to reverse circular linked list
where I get DSA course
T 2:30 aren't we supposed to do that with only doubly linked list
when will next video launch??
cost is pure red investment
Please make a review video on NIT Jalandhar. 🙏
no
@@dakshchhabra9950 Why no?
Please try to upload lectures a little fast
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;
}
Yeah... Its correct
Much better than what she told in video.
kay likha h pura blunder🤣🤣🤣
@@aniketsrivastava1870 go and learn 10th you don't deserve coding 😂
@@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
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
Hlo di, how can i fulfill minimum system requirements of windows 10..