You explain every problem in a very simple way. I appreciate your teaching
@lindawisebear7 жыл бұрын
Absolutely brilliant tutorial; one of the best I've seen on youtube for linkedlists!
@vivekanandkhyade7 жыл бұрын
Thanks Linda..!
@panagiotiskoligas96315 жыл бұрын
if you like watch my tutorial about linked lists in c:linked lists c by panagiotis koligas.
@lavender_artistic_058 ай бұрын
Do I have to put header file and main function before the program in exam
@adarsh.singh.7774 жыл бұрын
I tried my ass out to solve this problem until I found this video, I was just missing a trick. thanks a lot man..you're amazing.
@sushantshirsekar14432 жыл бұрын
Simplicity level to infinite, great respect sir.
@osamamughal2707 Жыл бұрын
This is the best and the simplest explaination and approach of this problem. Really find this wonderful video after searching and didn't regreted a setting, Very nice Explaination Thankyou very much.
@F_and_L Жыл бұрын
thank you sir.u have explained in a very easy way that even a non tech person also can understand.thank you again sir
@adityabhosale84613 жыл бұрын
This is the best tutorial you'll get on KZbin..
@sivaramchintalapudi52163 жыл бұрын
After searching lot of videos, finally landed at right place.
@vishesharora398410 ай бұрын
Brilliant explanation. Thanks a lot sir. You made such a hard problem so easy.
@jayeshvyas63907 жыл бұрын
Thank you so much i was stuck by this problem but after seeing your explanation now i can easily understand .
@percyygaming6 жыл бұрын
Sir i like your explanatory skill as you teach in very easy language!
@asim-gandu-phenchod3 жыл бұрын
Brilliant. Much respect from Pakistan
@namrataswain79995 жыл бұрын
Amazing tutorial Sir. So simple and easy to understand.
@explorewithshobhit91573 жыл бұрын
Extremely Satisfying video. Made easy by ( narshima karumanchi ). Has all the problems that you discussed on your videos. Thank you 🙏keep going 🦅
@ayushshukla15974 жыл бұрын
Thanks a lot Sir. You're a gem.
@vivekanandkhyade4 жыл бұрын
Glad it helped
@muhammadtahakhan18337 жыл бұрын
Best Explanation indeed. Love From Pakistan
@gauravsinha58305 жыл бұрын
Great help. However, I don't think you would need the first if(p && q) check. It will only reach there if that case prevailed.
@sumitchakraborty94512 жыл бұрын
best teacher award goes to Vivekanand sir
@satyamsharma51814 жыл бұрын
Awesome concepts And awesome teacher .
@adithiyagurupatham32557 жыл бұрын
It's really a nice video and I really understood the concept thanks sir!!!
@pinkeshpatel19403 жыл бұрын
Great way to explain the linked list.
@rishabhsahu52574 жыл бұрын
Love your work and efforts bro.!!.Cheers to open source community
@dishipratap58717 жыл бұрын
thank u sir, your explanation helped me lots.
@vivekanandkhyade7 жыл бұрын
thanks Dishi.
@varunsakunia89455 жыл бұрын
Very Nice explanation. i got better understanding of this concept.Thanks sir.
@karun46636 жыл бұрын
no words simple and clean explanation u deserve more views and subs
@TechnicalBaniya7 жыл бұрын
write a code to partition a linked list around a value x such that all nodes less than x come before all nodes greater than or equal to x. if x is contained within the list , the values of x only need to be after the elements less than x. the partition element x can appear anywhere in the right partition it does not need to appear between the left and right partitions. input:. 3->5->8->5->10->2->1(partition 5) output: 3->1->2->10->5->5->8
@TechnicalBaniya7 жыл бұрын
sir please make the video on it actually even I didn't understand the problem
@holyshit9226 жыл бұрын
This can be written quite easily if we know how to write a queue but here we dont care about allocating memory Dequeue element from the original linked list Compare key values of dequeued node and pivot node Enqueue dequeued node to the correct sublist Repeat these steps until original list is not empty Lastly sublists can be concatenated If order of nodes with keys equal to pivot key does matter use three sublists First contains nodes less than pivot Second contains nodes equal to pivot Third contains nodes greater than pivot otherwise two sublists will be enough For queue operations and concatenation each list should have pointers to the head node and tail node
@-_-sweetvibes-_-5 ай бұрын
*Return newhead should be written outside the while loop..else it will be returned in first iteration only...*
@h3is3nb3rg5 жыл бұрын
An Awesome Tutorial explained in lucid language. Thanks a lot !!!
@AnilKumar-qy5tf4 жыл бұрын
watch this for better understanding kzbin.info/www/bejne/oae2iGecdrKXsLM
@alone_man31983 жыл бұрын
Brilliantly explained
@vivekanandkhyade3 жыл бұрын
Thanks a lot Aman
@yamotuki5 жыл бұрын
great! I refer this video for solving leetCode problem.
@sriramkukkadapu10497 жыл бұрын
Thanks Vivekanand. Good video :) i tried this and it worked perfectly.
@akshaygodase80674 жыл бұрын
bro. You explained it really well. Awesome keep it up!
@harshraj574 жыл бұрын
Amazing sir...i have cleared my concept easily thank u sir
@vaibhavgupta15196 жыл бұрын
Thank you so much for this elaborated point wise explanation
@deekshithpranav16194 жыл бұрын
bro we need merge sort with linked list c++!! its a very improtant algo and useful in placement interviews.
@collinsmuriuki25662 жыл бұрын
Thanks, very well explained.
@tegharomeo22 күн бұрын
love your explaination sir
@nayanpandule97793 жыл бұрын
Thank you very much Sir for the amazing explanation..!! I really appreciate it
@abinashbarik51286 жыл бұрын
Hi Sir, I used to see your videos .Your videos are very very useful for me . I want a video on Flatten a Sorted multilevel linked list and Sort a linked list of 0s, 1s and 2s .Sir Kindly upload upload these videos.
@pulkitsupple614816 күн бұрын
Well explained 👍👍
@rohitdixit16175 жыл бұрын
You my friend are a RockStar!
@AdityaKumar-ws5pv7 жыл бұрын
sir u are doing gr8 job.Please keep uploading videos.Thank u
@vivekanandkhyade7 жыл бұрын
Thanks Aditya..!
@harshitmaurya914010 ай бұрын
Great explanation sir
@varunnarayanan87204 жыл бұрын
Very well explained sir Thanks
@samyakjain33976 жыл бұрын
sir ur videos really helped us alot tysm
@priyashrivastava59433 жыл бұрын
Amazing explanation
@GANESHKUMAR-dm5if6 жыл бұрын
Great explanation sir really great ...
@danillomelodafonseca Жыл бұрын
Thanks, you saved me 😢❤
@SatyendraJaiswalsattu7 жыл бұрын
very good explanation sir..
@holyshit9223 жыл бұрын
Both linked lists and files have sequential access so we can adapt file sorting algorithms for sorting linked lists
@CSFGIRIBAABUKG Жыл бұрын
extraordinary
@r3fl3xplays366 жыл бұрын
these topics are not available on youtube.
@nikhilchopra55122 жыл бұрын
very well explained thx a lot
@harikhakolipaka91974 жыл бұрын
Wow finally I understood.Thank you sir.
@reyou75 жыл бұрын
Amazing->next = amazing!
@ishan_kumar5 жыл бұрын
Factorial hatao bey
@francobarbosaflores77732 жыл бұрын
congratulations, very good!
@Kchima857 жыл бұрын
I apologize if I am incorrect about this, but I was confused about one particular part of this code. When you save newHead = sorting; is that backwards? Should it not be sorting = newHead?
@vivekanandkhyade7 жыл бұрын
we are assigning the 'sorting' node address to the newHead variable...so newHead = sorting . See if we do " sorting = newHead" , then at this time newHead is Null so sorting will also become Null. So that is not correct. The current address of "sorting" node is the starting address of our answer linked list , so newHead = sorting. Once we save the address in newHead , now "sorting" variable is free to move further.
@Kchima857 жыл бұрын
Vivekanand Khyade - Algorithm Every Day I see where our code differs. I assigned the lesser of the two nodes in the initial comparison to newHead. Then when I assigned the sorting to the newHead it set newHead back to null. That is why I am incorrect.
@dighechinmayt7 жыл бұрын
clear and concise explanation, thank you!
@meghamou4566 жыл бұрын
Very nicely explained, thank you!
@prachichandrakar23677 жыл бұрын
thank you so much for this video it helps me a lot
@vivekanandkhyade7 жыл бұрын
Thanks Prachi..!
@sreelakshmig40043 жыл бұрын
So using if-else condition we're sorting and merging the two already sorted linked lists and using while loop were printing the newly merged single sorted linked list?Amazing explanation sir.
@dannfrank66133 жыл бұрын
no using the if statement at the beginning we can set the head of the list then using the while loop we can set the rest of the list starting at the head.
@tevaganthanveluppillai7205 жыл бұрын
Very well explained. thanks.
@mahanteshnayakar22276 жыл бұрын
Really good explanation, keep it up.....
@sankaranarayananh79575 жыл бұрын
Nice explanation sir!
@talibkhan91933 жыл бұрын
Mindblowing explanation . Can we write this program for WAP merge of two sorted list ?
@sayedathar25076 жыл бұрын
Thanks Alot Nice Explanation.
@piterbajk7 жыл бұрын
superb clear explanation, thanks! ;)
@dhavalparikh3336 жыл бұрын
Good explanation. But the algorithm doesn't handle the edge case when one of the lists or both the lists has only one node in it.
@ravishankarkumar1064 жыл бұрын
what a wonderfull explanation
@Ozneroc7 жыл бұрын
Great video. I have a question: what if the list was doubly linked, where would the prev point?
@richagupta18655 жыл бұрын
What ll be the best and worst case complexity for this??
@punitpawar42314 жыл бұрын
Will it be possible for you to show the recursive approach of doing this operation ?
@bharathSPS19954 жыл бұрын
Thanks a lot! Really helpful
@holyshit9227 жыл бұрын
I would write sorting pointer as local inside function There is missing function which divides list into two sublists and recursive or iterative sorting function How to make this algorithm to work for doubly linked lists To find a midpoint we can use two pointers slow goes once per iteration , fast goes twice per iteration in doubly linked lists we can iterate pointers from both head and tail When we find the midpoid we break the linked list into two sublists Sorting function is similar to this which works for arrays
@vivekanandkhyade7 жыл бұрын
Thanks Jacek...will upload a video in Jacek..!
@holyshit9227 жыл бұрын
Natural version of merge sort do not need recursion You can show it If you complete merge sort algorithm we will be able to use linked list for convex hull
@holyshit9227 жыл бұрын
Merge sort can be used for sorting files I found in spanish textbook for Pascal natural merge sort for files but i would like to watch version of merge sort with optimized I/O operation Suppose we have limited memory f.e 64kB
@Gandhiboy4 жыл бұрын
Thank you so much ❤️
@poojasakhare87604 жыл бұрын
Thank you 🙇
@sandeshrana72254 жыл бұрын
Brilliant. Thanks
@vivekanandkhyade4 жыл бұрын
You're welcome!
@utkarshdandagavhal28784 жыл бұрын
Thank you sir❤️
@panagiotiskoligas96315 жыл бұрын
another way of merging 2 linked lists: if p->datadata:insert(list,p->data); else insert(list,q->data); am i correct?please advise..!thanks.i built this program in my way and worked...
@aaryanbudhirajamusic68744 жыл бұрын
it is right but here you are creating a new list, in this tutorial it shows how to merge in the same list
@randeepsiddhu4 жыл бұрын
float playbackSpeed = 1.0f; if (you know the logic) playbackSpeed = 1.50; else playbackSpeed = 1.25;
@siddhartharaja94134 жыл бұрын
👍 good one
@gameplanner41104 жыл бұрын
even 2x will work
@pawandeepchor896 жыл бұрын
Very good ... excellent 👍
@yasim94356 жыл бұрын
Is there a way of merging 3 sorted lists which is better than merging 2 lists at a time?
@BensonMpapa7 жыл бұрын
What will the code be like when reversing? can we say if (p
@Wh0NeedsFr1ends2 жыл бұрын
Im having trouble with Duplicate values existing in both lists. Also having trouble with null inputs.
@SurinderKaur-vq6ti5 жыл бұрын
well explained , thanks sir
@Menikungmu3 жыл бұрын
i love the you wrote "r"
@AbhishekSharma-uh8pb5 жыл бұрын
what if our list is not sorted ?
@t__--__t4 жыл бұрын
some advice. You should include your source file
@najimali325 жыл бұрын
Your explanation is really good , But code is lengthy you can use the same concept using recursion. Node sortedMerge(Node a, Node b) { Node temp=null; if(a==null) return b; else if(b==null) return a; if(a.data
@alokkumarsingh5793 жыл бұрын
after this i m fan of recursion....a better solution
@tdsfriends15772 жыл бұрын
Very helpfull, Thx
@sachinbhalla145 жыл бұрын
Sir your videos are Great But why you do'not provide code ??
@jpakash19994 жыл бұрын
ide.geeksforgeeks.org/LfgR5Cn2wp
@pravesh81875 жыл бұрын
Grt video sir
@bidsouravbest5 жыл бұрын
you are awesome sir!
@bharathi802054 жыл бұрын
Hi, this is really Awesome!! Could you pls provide the code in java
@khoavouc37065 жыл бұрын
Hi techer it helpfull
@sambhumahato83204 жыл бұрын
very nice..❤❤❤
@rwnsaad97386 жыл бұрын
Thank sooo much really helpful
@amritpandher49556 жыл бұрын
Sir why does this method ignore multiplicity. If two lists have the same number it only prints it once.
@lalayadav8667 жыл бұрын
very nice sir,......
@vivekanandkhyade7 жыл бұрын
Thanks LALA..!
@vidyakamath82987 жыл бұрын
i am new to algorithms ,just wanted to know can we solve this using queue where we compare the data from both the linkedlist and which is less we add that to queue ?Please let me know.