382 Linked List Random Node
1 题目
Given a singly linked list, return a random node's value from the linked list. Each node must have thesame probabilityof being chosen.
Follow up:
What if the linked list is extremely large an...
原创
2019-07-13 22:22:17 ·
68 阅读 ·
0 评论