Скачать
Reorder Linked List: Recursive Technique Breakdown
Автор: Emran Chowdhury
Загружено: 2024-11-28
Просмотров: 6
Описание:
In this video, we solved the Leetcode problem 143 : Reorder List
We used recursive algorithm to solve this problem. At first, we store all the nodes in a dictionary with its index (0-based)
Then we updated the pointers for 0th and nth node, and recursively call the function with 1, n-1
Space complexity is O(n) since we used extra storage to store the node in a dictionary. Run time complexity: O(n)
I write weekly newsletters on career growth, computer programming concepts and personal finance. Follow me on LinkedIn: https://linkedin.com/comm/mynetwork/d...
Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: