LEETCODE
UNLOCKED
Problems
Donate
Premium
Linked List Random Node
Solution Code
Time Complexity
O(
1
)
for getRandom
Space Complexity
O(
N
)