Odd Even Linked List (LeetCode 328) | Full solution with diagrams | Study Algorithms

  Рет қаралды 13,841

Nikhil Lohia

Nikhil Lohia

Күн бұрын

Пікірлер: 70
@6lack-Echo
@6lack-Echo Жыл бұрын
please dont ever stop making videos, you have the best explanations !
@nikoo28
@nikoo28 Жыл бұрын
If only I get a few more subscribers 😅
@pranithreddy
@pranithreddy 11 ай бұрын
I am new one please dont stop@@nikoo28
@anand-zk3uj
@anand-zk3uj Ай бұрын
@@nikoo28 Dont say that bro am gonna cry!!
@samridhshubham8109
@samridhshubham8109 9 ай бұрын
Perfect Approach Perfect Explanation Perfect Drawing to understand better
@nikoo28
@nikoo28 8 ай бұрын
simply lovely
@Ranjeeta_is_it_you
@Ranjeeta_is_it_you Жыл бұрын
i wish all of the leetcode problem' s solutions explained by you.Than you for the explanation!! :))
@likhansarkar1200
@likhansarkar1200 Жыл бұрын
thanks for this, i see everyone creating new lists, thats using extra space!!
@JangoJudy
@JangoJudy 9 ай бұрын
Honestly the best explanation out here, please continue your great work.
@himanshuvaishya9164
@himanshuvaishya9164 Жыл бұрын
I have seen many videos for this problem but your teaching method is best and easy to visualise
@nikoo28
@nikoo28 Жыл бұрын
i like visual solutions
@KarthikDances
@KarthikDances 2 ай бұрын
plz make such more videos explanation was so clear and point to point
@Satya-g5t
@Satya-g5t 2 ай бұрын
always good elegant explanation
@AbhinavKumar-dl2ph
@AbhinavKumar-dl2ph 5 ай бұрын
Why we do not have condition for odd in while loop ? while(odd!=null) ?
@Fido1hn
@Fido1hn 2 ай бұрын
Thank you so much. This explanation is awesome. and easy to digest. Please keep going.
@shivacoding
@shivacoding 6 ай бұрын
Please do all leetcode problem videos, you are one and only the best.
@funnymoment9164
@funnymoment9164 Жыл бұрын
Thanks! Cool explanation.
@UMAR-ov7mf
@UMAR-ov7mf 2 ай бұрын
Thanks Nikhli for such an awesome solution
@shivacoding
@shivacoding 6 ай бұрын
You deserve 1 million Subscribers.❣
@JERALDROHANI
@JERALDROHANI 6 күн бұрын
Superb explanation
@alexgu3257
@alexgu3257 5 ай бұрын
Really clear explanation, thanks!
@Shadowxgaming_
@Shadowxgaming_ 10 ай бұрын
best explanantion bhaiya , thanks you so much
@ankit_yr_senpai
@ankit_yr_senpai 4 ай бұрын
best explanation sir
@sanjammanagi6562
@sanjammanagi6562 Жыл бұрын
great explanation sir
@studentchampion718
@studentchampion718 4 ай бұрын
Nice Explanation
@TheSachinAlam
@TheSachinAlam Жыл бұрын
Best explanation ever!!!
@nikoo28
@nikoo28 Жыл бұрын
Glad you think so!
@devu5501
@devu5501 7 ай бұрын
You have the great explanation really ❤
@nikoo28
@nikoo28 7 ай бұрын
Thank you! 😃
@swethak3505
@swethak3505 6 ай бұрын
Thanks for the explanation
@LogicTherapy
@LogicTherapy 4 ай бұрын
that was really well done
@smandal1237
@smandal1237 6 ай бұрын
thank you so much..plzz dont"t stop
@nikoo28
@nikoo28 6 ай бұрын
I will try my best
@abdessamadsabouri7927
@abdessamadsabouri7927 3 ай бұрын
TOP!! Thank u !
@sobitregmi31
@sobitregmi31 Жыл бұрын
Great explanation bro
@jaysingh-rn6ge
@jaysingh-rn6ge 10 ай бұрын
Thank you
@satestactmathtutor6570
@satestactmathtutor6570 Жыл бұрын
best explanation on youtube how you donot have 100 k views ,, it will come broo do not worry just keep going and do not stop making videos plzzzz
@nikoo28
@nikoo28 Жыл бұрын
please share as much as possible :)
@WebMaster600
@WebMaster600 11 ай бұрын
Cool bro 😎
@kunalkheeva
@kunalkheeva Жыл бұрын
Great!
@syedtaqi54
@syedtaqi54 Жыл бұрын
Hello Nikhil can u please make video on "Flatten a Linked List"
@nikoo28
@nikoo28 Жыл бұрын
Can you describe the problem statement?
@nikoo28
@nikoo28 Жыл бұрын
Or a link to the problem…where can I find it!
@subee128
@subee128 10 ай бұрын
Thanks
@rishavranjan6656
@rishavranjan6656 Жыл бұрын
Your explanation is always the BEST and one more thing to ask are you a Tifosi (Ferrari Fan) and specially Seb fan ?
@nikoo28
@nikoo28 Жыл бұрын
Sharp observation I must say.. 😄 Yes..a Ferrari fan..but that isn’t working out lately 😂
@rishavranjan6656
@rishavranjan6656 Жыл бұрын
@@nikoo28 yeah Ferrari strategies are so brute force they don't think of optimised strategies 😂
@jayprakashjaiswaldeptofcom1250
@jayprakashjaiswaldeptofcom1250 Жыл бұрын
Bhaiya please thora frequent video upload karo
@nikoo28
@nikoo28 Жыл бұрын
i keep trying...but it takes me almost 10 hours to produce 1 video from scratch. Thinking about a problem, simplifying it as much as I can, creating all those images and diagrams, recording, editing, publishing with all the links, creating thumbnails. It is a very lengthy process along with my day job and a married life. Thanks for all your support and patience, I try to be as consistent as possible and want to focus on quality over quantity. Hope I retain you as my viewer. :)
@kulkarnisoham
@kulkarnisoham Жыл бұрын
@@nikoo28 😱😱 10 hours! really? hats off.. So this is the reason behind lucid explanation and the clean slides. Best of luck brother
@tyy899
@tyy899 4 ай бұрын
why this is not getting worked while(even.next!=null&&odd.next!=null) { this loop condition bro can you help me out .. :)
@pcccmn
@pcccmn Жыл бұрын
I think you are so much better at teaching than NeetCode and TechDose =)
@wenkaiyang1487
@wenkaiyang1487 11 ай бұрын
why don't you set odd = odd.next.next instead of odd.next = odd.next.next; and odd = odd.next?
@wickedgabrugamer
@wickedgabrugamer 10 ай бұрын
this will not alter the pointers, it will just move the odd pointer to next.next. so 1st alter and then move.
@kidoo1567
@kidoo1567 Жыл бұрын
Nikil...can u do sums for stack and queue?
@nikoo28
@nikoo28 Жыл бұрын
do you have specific problems in mind?
@VenkateshGattu-n4e
@VenkateshGattu-n4e 8 ай бұрын
The code not working for odd length linked list
@viking8774
@viking8774 7 ай бұрын
Sir can you explain. Split the linked list in 2 halves where one list contains only odd values and other contains only even values
@nikoo28
@nikoo28 7 ай бұрын
What do you mean?
@viking8774
@viking8774 7 ай бұрын
@@nikoo28 I mean to say One half contains odd data and other half contains even data
@nikoo28
@nikoo28 3 ай бұрын
i get it..but that is the goal of the question. I couldn't understand what are you asking over here?
@meghasingh9170
@meghasingh9170 4 ай бұрын
Why is the while loop condition : "while even and even.next" and not "while odd and odd.next"?
@sidharthan3349
@sidharthan3349 3 ай бұрын
same doubt, did you find the reason?
@Rahulkumar-vn1vm
@Rahulkumar-vn1vm 8 ай бұрын
why we cant use while odd!=Null and odd!=Null instead of even????
@nikoo28
@nikoo28 8 ай бұрын
please clarify
@subhamagarwal476
@subhamagarwal476 5 ай бұрын
Because if you carefully see. Even will reach the null very soon as compared to odd because it is starting one after odd. So if we save even check somehow then we will definitely save odd thats for sure . So we are putting condition like while (even != null)
@Kapilsharmaonly
@Kapilsharmaonly 3 ай бұрын
Hi Sir ,I am big fan of your explanation. I just want to know is this code is good or not public ListNode oddEvenList(ListNode head) { ListNode last=head; if(head==null || head.next==null || head.next.next==null) return head; while(last.next!=null){ last=last.next; } ListNode s=last; ListNode prev=head; while(prev!=s && prev.next!=s){ last.next=prev.next; prev.next=prev.next.next; last=last.next; last.next=null; prev=prev.next; } if(prev.next==s){ prev.next=prev.next.next; last.next=s; s.next=null; } return head; } leetcode accepted this solution but just want to know its optimal or not
@likhithakande2902
@likhithakande2902 Жыл бұрын
😛😛😛
@likhithakande2902
@likhithakande2902 Жыл бұрын
😝😝😝
@plutomessi21
@plutomessi21 Жыл бұрын
thank you bhaiya
2751. Robot Collisions | Stack | Sorting | Not Hard 🫡
19:30
Aryan Mittal
Рет қаралды 6 М.
Молодой боец приземлил легенду!
01:02
МИНУС БАЛЛ
Рет қаралды 1,9 МЛН
МЕНЯ УКУСИЛ ПАУК #shorts
00:23
Паша Осадчий
Рет қаралды 5 МЛН
Увеличили моцареллу для @Lorenzo.bagnati
00:48
Кушать Хочу
Рет қаралды 8 МЛН
Complex Analysis| Mp Set Previous Year Paper 2023| Unit 2 | Lecture 3 Mppsc
36:00
DK TUTORIAL OF MATHEMATICS
Рет қаралды 72
5 Simple Steps for Solving Dynamic Programming Problems
21:27
Reducible
Рет қаралды 1,1 МЛН
Odd Even Linked List - (Microsoft, Amazon) : Explanation ➕ Live Coding
22:04
L6. Odd Even Linked List | Multiple Approaches
24:05
take U forward
Рет қаралды 105 М.