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 }
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
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 ?
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
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; }
दीदी, Software Engineer students को placement के लिए अलग से पढ़ने की जरूरत क्यों होती है?? क्या college study students को placement ready नहीं बनाती है??
@@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
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
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 ?
these sessions help me a lot to learn java..hats up guys
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.
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.
U made my coding journey easy❤️
thanks a lot
need more videos on bst, graphs, implementations and algorithms :)
THE BEST TEACHER
THE BEST CONTENT
JUST GRATEFUL ❤️
Very nice explanation didi, please continue the java placement series (trees, graphs).
Thank you so much Aman bhaiya , Shradha di and all team members
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.....
❤️❤️ you dii bss aap jldi jldi video uploaded kro please 🙏🙏
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
Linked List bahut good laga
Thanks you so much didi ❤️❤️😗
Thank You Ma'am 🙏🙏🙏🙏🙏
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
}
Didi nice explanation of Reverse a linked list
Thank you Ma'am.
Make a complete playlist on python please.
Your way of teaching is very nice.
Rather than others.
very nice explanation..please continue this series again
Best explanation 👍
Thank you very much 🔥🔥🔥
Didi I i really inspired from your videos
Technology is future.
Apna college is present
Make a video on difference between data science and data analytics👍
See on my channel dude
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
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?
Very well explained!
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
Love from tripura
If you create a node( nextNode) in the loop for each iteration . May be Space complexity will be O(n)
thanks, best explanation
Data structure means making manual classes & method to perform certain action...
Nice , explanation . I was not able to understand previously. Now i am able to understand. God bless you Shradha didi
Thank you so much didi watched alot of videos, asked my friend but still was confused
Thank you again 🙏
Di apna ek personal channel bnaiye
#Apna College & shradda didi rocks
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
Thanks for the recursive...
Thank You😇
Please teach c++ in one video full large video by microsoft wali didi only 🤟 pakka
didi vedio ki frequency badhao
because its is better then c++ due to pen paper
I love to learn coding (Data Science) but unfortunately I don't have Laptop Or Desktop.
Thank you mam
Is this complete series with all datastructure and algorithm
CDAC VIDEO 💯💯
Thanks di!
Thanks a lot, mam.
One shot for double linked list please
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!
⚠️ Didi, MACHINE LEARNING bhi padhana start kariye please channel p
🥺🥺‼️
Edit - bhut jyadaa gratitude feel karege, Aman bhaiya aur aapke liye. Please please please‼️
Di ek video C++ Vs Java
There is no need,Java❤️
C++ is the best boi
@@null_cmd you are on wrong path.
@@sameertambolitybcs6338 nope bro, u will not decide for me to take which path
@@null_cmd So you'll also not decide and say that c++ is best and all that.
Huge respect china❤️
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)
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?
00:10 she was talking about 'Algoexpert'😂
Didi please make a video about rodemap of how to become a software engineer. Please didi
good job
Thank you
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.
plz i want more video of java
Make a vedio for java programming in moblie
Didi plese make video , What is coding
Some basic knowledge on coding how can we make apps ( From A to Z )
PLESE.
Thanks
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.
Mam please share most ask coding que for software testing
I have check out on mine chnnel..
Pls do review of jss noida and gl bajaj
circular and dobuly linked list
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
Is there any video on LinkedHashMap
great!
GSoC 2022 me select ho paunga keya by only this course ????
Doubly or circular linked list nhi h playlist m
Why we didn't use collection framework here
How to reverse linked list using collection framework??
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.
Need more video and explanation with debug the memory how to work it's help us please didi
Thnx
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
Tanku
Ek video book key upar for coding
T 2:30 aren't we supposed to do that with only doubly linked list
Not understand didi.. please explain dry run of code also.. so we can understand.. what is previous Ani current on graph
We can also use collections.reverse(list) method is it correct
Nicely 🤦didi
Is there any data structure course I this channel?
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
solution of previous homework problem
Java key liya kunsa book acha hoga??
दीदी,
Software Engineer students को placement के लिए अलग से पढ़ने की जरूरत क्यों होती है?? क्या college study students को placement ready नहीं बनाती है??
nhi bhai nhi bnte
@@ashishkumar-fd4gp kyon bhaiya
@@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
Hi everyone
In Java push method is there .no need all this.
Please make a review video on NIT Jalandhar. 🙏
no
@@dakshchhabra9950 Why no?
cost is pure red investment
double aand circular linklist?
how the recursive function is working in the reverse linked list program can anyone explain please🙏
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
it was little confusing , should make another video with better explanations tbh mam
Please try to upload lectures a little fast
where I get DSA course
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
?