LeetCode 2020 Dec 2 Linked List Random Node
Question: We are given a list of nodes, we have to return a random node. We should make sure each node have same probability. Meaning any number in that list can be returned at any time; we should not constantly return same number.
The Question in Le...
heyvp7.hashnode.dev4 min read