![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LeetCode
饭特稀特别稀
曾梦想仗剑走天涯,如今却码字写代码。
展开
-
LeetCode值Nim Game
周末刷知乎的时候,有人说leetcode.com网站上的练习题非常适合准备跳槽的人,虽然我不准备跳槽,但多见识一些总没有错,抱着好玩的心态,按照难度的排了顺序,开始做题。这就是Nim Game:You are playing the following Nim Game with your friend: There is a heap of stones on the table原创 2015-12-05 17:11:01 · 589 阅读 · 0 评论 -
LeetCode之Add Digits
原题:Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.For example:Given num = 38, the process is like: 3 + 8 = 11, 1 + 1 = 2. Since 2 h原创 2015-12-05 18:13:20 · 386 阅读 · 0 评论 -
hihoCoder:Dice Possibility
题目2 : Dice Possibility时间限制:10000ms单点时限:1000ms内存限制:256MB描述What is possibility of rolling N dice and the sum of the numbers equals to M?输入Two integers N and M. (1 ≤ N原创 2016-07-15 15:54:48 · 466 阅读 · 0 评论