Definittely this is one of the best playlist on linked list in youtube.
@SaiSumanthKovuru10 ай бұрын
best series i have ever seen especially the dry run thank u so much for an exceptional series
@393ShivamRajput10 ай бұрын
Great video, --> This video is not updated in the SDE sheet and in the Article as well.
@neerkhandor500710 ай бұрын
Byfar the best linked list series Thank you very much Raj Bhaiya
@amarpalji9 ай бұрын
Thanks for clean code. sudo code have minor issue , please correct it . if ( t1 -> data < t2 -> data ) You missed equal elements . it should be if ( t1 -> data data )
@anirudhv00627 ай бұрын
yes. I wondered the same. I came here from leetcode. there some values in the two sorted lists which are same. but what an explanation. I know only basics of linked lists. I was able to undersand well enough
@ujjwalsingh68897 ай бұрын
There is no need for this Equal to condition bcz it already handled by else part But it is good to think about this condition👍👍
@anirudhv00627 ай бұрын
@@ujjwalsingh6889 yes. I realized it later. when I did a dry run. Thanks for replying ujjwal
@rahulmandal40075 ай бұрын
@@anirudhv0062 You need to improve your DSA These are basics
@sohamsonwane153410 ай бұрын
meri tarf se ik papii supper good explanation
@OrderEmperor9 ай бұрын
🏳️🌈
@robot3.07710 ай бұрын
Bhaiya ,I can definitely say, you are god of DSA❤❤
@itsd238810 ай бұрын
Bhaiya when can we expect stack queue playlist
@Mel-up7un13 күн бұрын
dude you're better than that neetcode guy thank youuuuuuuuu
@jnayehsirine62228 ай бұрын
we missed youuu here ! KEEP UP THE GREAT WORK YOU'RE DOIN MAN
@rajatraj42975 ай бұрын
why this problem is not in the A2Z sheet?
@kirannaik441725 күн бұрын
Loved it, bro!
@RAHULSINGH-cd6gl10 ай бұрын
On which topic you will be making your next playlist??
@crazyfacts443410 ай бұрын
Very good explanation. 😊😊
@ManojKumar-do1rh8 ай бұрын
Thanks ... nice explaination
@samriddhichoubey7832Ай бұрын
In which lec you've explained the concept of dummy nodee?
@Bhawna-ir1gr10 ай бұрын
amazing explanation ✨✨
@dayashankarlakhotia494310 ай бұрын
class Solution { public ListNode mergeTwoShortedLists(ListNode l1,ListNode l2){ ListNode ans=new ListNode(-1); ListNode temp=ans; while(l1!=null&&l2!=null){ if(l1.val
@m1stnoob2015 ай бұрын
Can't we use dummy node to make it as a copy of the lowest head value of either of the lists (which acts as the head of the new merged list) , and repeat the same process . Will the solution be different ?
@justsomeguywithoutamustach99785 ай бұрын
To be exact, time complexity would be O(min(n1 + n2)).
@atulwadhwa1928 ай бұрын
shouldn't time complexity be min(n1,n2) coz this is where while stops and then it's just one extra link that we've to do?
@shahidullahmuffakir6687 ай бұрын
if the smaller values were in the n2 then in this case we will traverse till the end of n2. so min(n1,n2) will not work.
@Mel-up7un13 күн бұрын
But we have to consider the worst case in which we traverse both the linked lists up to the last node
@aakashbhandari976110 ай бұрын
Welcome Back sir❤🎉
@sujalsingh936510 ай бұрын
Happy New Year 🎉
@priyarajtripathi99528 күн бұрын
hey folks, does anyone know what tool he is using to write and draw?
@d.praful5 ай бұрын
Nice explanation ❤
@abhishekprasad0105 ай бұрын
What if I use a multiset instead of an array in brute force approach??
@ddevarapaga51344 ай бұрын
Best bhai Thank you
@hashcodez7574 ай бұрын
Epic bhaiya!!
@cenacr0076 ай бұрын
I couldn't find this question in the a2z playlist.
@adebisisheriff1599 ай бұрын
Thanks Striver!!1
@YourCodeVerse9 ай бұрын
Understood✅🔥🔥
@DeadPoolx17122 ай бұрын
UNDERSTOOD;
@musabahmed5678 ай бұрын
I'm confused how the space complexity is O(1)? We are creating a dummy node which extends to hold the nodes of both linked list 1 and linked list 2. Don't the space complexity be O(n1+n2) where n1 are number of nodes in linked list 1 and n2 are number of nodes in linked list 2.
@gulugulu-pw2ds7 ай бұрын
ACTUALLY ITS LIKE VARIABLE DECLARATION .
@aneeketvispute50633 ай бұрын
we are not creating a new node we are just declaring it like a temp node
@karthikeyan.s25653 ай бұрын
@@aneeketvispute5063bro If we change temp.next = t2 then how the next node of t1 is not lost Since we're changing the link
@atulwadhwa1928 ай бұрын
8:15 Can anyone tell in which video dummy node concrpt is explained by him😅
@No-yp1uv2 ай бұрын
is this a dynamic programming problem?
@ArpanChakraborty-do6yz8 ай бұрын
Awesome 😎 17:36
@NARUTOUZUMAKI-bk4nx10 ай бұрын
Understoood
@nayankhuman10432 ай бұрын
understood :)
@OmkarKudalkarАй бұрын
letsss fuckin gooooooo did both the approaches by only just getting one hint and last handling of edge case where i is not null where i tell temp ki tera next is i and vice versa yaaay
@dewanandkumar85896 ай бұрын
Understood
@subee12810 ай бұрын
Thanks
@RituSingh-ne1mk10 ай бұрын
Understood!
@VibhaJamadagni-hz6ck5 ай бұрын
understood
@ashishpradhan62504 ай бұрын
Nyc
@nashratjahan937110 ай бұрын
There's a little mistake at the end for handling remaining nodes after either one list has reached null, there should be a another while loop to handle those cases. Also there isn't a java code to the above problem kindly provide one
@gokulanvs10 ай бұрын
No need for while loop , see the video 11:40
@md.ualiurrahmanrahat24009 ай бұрын
No,we don't need the while loop here. As we are using the exiting nodes itself,not creating new ones. Suppose n1 is null, so n2 is left. we pointed temp->next as n2. so, from here, link is maintained up to n2 becomes null. Hope you got this.
@pratiushkumar33069 ай бұрын
Wait what 😂 he did solved that with if else. Watch it completely before commenting.
@ShivaMahajan079 ай бұрын
God or what
@YashGaneriwal-je6rh3 ай бұрын
done and dusted
@codeman38289 ай бұрын
Undertsood
@Adarsh_agrahari10 ай бұрын
Done and dusted😅
@AkashKumarTiwary-u4b6 ай бұрын
god
@rahulhembram45199 ай бұрын
UnderStood
@aayushgakhar35256 ай бұрын
free(dummy node):
@rahulmandal40075 ай бұрын
where the hell is the dummy node concept been spending hours to find but couldn't find it Someone plz pin it