Leetcode - Rotate List (Python)

preview_player
Показать описание
October 2020 Leetcode Challenge
Leetcode - Rotate List #61
Рекомендации по теме
Комментарии
Автор

One of the simple approach easy to understand. Thank you.

adarshagowda
Автор

Thank You for such an easy to understand code and explanation :)

jayantdhingra
Автор

Thank you very much for this video sir

sharifmansuri
Автор

why cur.next=head, why not head=cur.next.I can't understand this

surbhirohilla
Автор

Nice! Just a quick follow up question, if this were a doubly linked list, would we still need to give reference to the previous node in the second while loop? Thanks Tim!

janmichaelaustria
join shbcf.ru