![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode
文章平均质量分 65
帅气又迷人的写Bug小能手
我爱骑马
展开
-
边刷leetcode边学编程-382 Linked List Random Node
问题简述 蓄水池抽样算法 问题简述 Given a singly linked list, return a random node’s value from the linked list. Each node must have the same probability of being chosen. Follow up: What if the linked list原创 2017-05-29 16:46:02 · 322 阅读 · 0 评论 -
边刷leetcode边学编程-477. Total Hamming Distance
问题概述 算法详解问题概述The Hamming distance between two integers is the number of positions at which the corresponding bits are different.Now your job is to find the total Hamming distance between all pairs of t原创 2017-05-30 20:58:40 · 288 阅读 · 0 评论