Back to Browse

Linked List Random Node | Leet code 382 | Theory explained + Python code

2.2K views
Dec 3, 2020
14:26

This video is a solution to Leet code 382, Linked List Random Node. I explain the question, go over how the logic / theory behind solving the question and finally solve it using Python code. Comment below if you have a better solution to this problem! Let me know if you have any feedback and don't forget to subscribe for more videos! Time stamps: 0:00 Question Explained 2:15 Solution Explained 10:15 Python Code Code: https://leetcode.com/problems/linked-list-random-node/discuss/957886/Python-3-Solution-Explained-Reservoir-Sampling-(Video-%2B-Code) More leetcode questions solved: https://www.youtube.com/watch?v=O5yxoFS_diY&list=PLr9zbByiJa3Ua2AgTrdvot6AQ3b4CxWrF

Download

1 formats

Video Formats

360pmp418.8 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Linked List Random Node | Leet code 382 | Theory explained + Python code | NatokHD