Leetcode - Partition List (Python)

preview_player
Показать описание
April 2021 Leetcode Challenge
Leetcode - Partition List #86
Difficulty: Medium
Рекомендации по теме
Комментарии
Автор

You may not know anything but I trust you! What a baller solution

sofoboachie
Автор

`Simplicity is the ultimate sophistication` -Leonardo

VladBurlutsky
Автор

Simple solution. Great explanation. Following all your monthly leetcode problems. Thanks.

glenfernandes
Автор

Watching your videos making me easier and faster to understand the solution .... Please bear a minute extra on explaining the problem ..

oddno
Автор

thanks for explanation. quick question how d1.next returns the whole linked list. shouldn't it bring one element which is 1?

anythingbeyondlimit
Автор

I am not able to understand how are d1 and d2 values changing in this code? Could someone explain. I understood that c1 and c2 we are changing through the loop but how is d2.next pointing to the head of the next list?

shrutisaxena
visit shbcf.ru