383.leetcode题目讲解(Python):链表随机节点(Linked List Random Node)
题目题目解题思路这道题比较简单,将链表结点的值逐一放入一个列表中,然后random一个返回值。参考代码(beats99%)'''@auther:Jedi.L@Date:Fri,May10,201910:52@Email:[email protected]@Blog:www.tundrazone.com'''importrandomclassSolution:def__init__(self