LeetCode Partition List Explained - Java

preview_player
Показать описание


Preparing For Your Coding Interviews? Use These Resources
————————————————————

Other Social Media
----------------------------------------------

Show Support
------------------------------------------------------------------------------

#coding #programming #softwareengineering
Рекомендации по теме
Комментарии
Автор

Damn, I spent like 40 min trying to solve this problem and when I looked at your solution, I realised that this problem is way simpler than I expected.

jagjot
Автор

I went through 10 different solutions and finally understood it. Thank you for the video!

Dudeawesome
Автор

Amazing bro!, sometimes just by hearing u gave me insights on how to solve other problem

pavanagarwal
Автор

Thanks nick, after 1hr analysis, I got better understanding on this approach😅

KARTHIKLAKSHMI-tm
Автор

I think node name before _head is little confusing .It is actually storing head of list of node elements smaller than x if I am not wrong .It could be renamed as before _x because that's the point where final list would look partitioned. Moreover head is moving and elements pointed by head is continuously changing.

saketkumar
Автор

How come 4 comes before 3 in the output ?

sushantkshirsagar
Автор

What is the meaning of this line - ListNode before_head = new ListNode(0); ? I am confused why he wrote 0 at the last

madetolaugh
Автор

I feel wayy better when I return after_head;

ogradus
visit shbcf.ru