排序:
默认
按更新时间
按访问量

LeetCode 38. Count and Say(java)

The count-and-say sequence is the sequence of integers with the first five terms as following: 1 11 21 1211 111221 1 is read off as “one 1” or 11. ...

2018-02-05 09:16:36

阅读数:367

评论数:0

LeetCode 11. Container With Most Water(java)

Given n non-negative integers a1, a2, …, an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoi...

2018-01-15 08:48:20

阅读数:60

评论数:0

LeetCode 292. Nim Game

You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 sto...

2018-01-11 13:43:27

阅读数:13

评论数:0

生日悖论

生日悖论 — 摘自wiki 生日悖论(Birthday paradox)是指,如果一个房间里有23个或23个以上的人,那么至少有两个人的生日相同的概率要大于50%。这就意味着在一个典型的标准小学班级(30人)中,存在两人生日相同的可能性更高。对于60或者更多的人,这种概率要大于99%。从引...

2018-01-11 05:37:21

阅读数:130

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭