原文:[LeetCode] Perfect Number 完美数字

We define the Perfect Number is apositiveinteger that is equal to the sum of all itspositivedivisors except itself. Now, given anintegern, write a function that returns true when it is a perfect numb ...

2017-03-28 21:07 4 5975 推荐指数:

查看详情

[LeetCode] Valid Number 验证数字

Validate if a given string can be interpreted as a decimal number. Some examples:"0" => true" 0.1 " => true"abc" => false"1 a" => ...

Sun Nov 09 16:22:00 CST 2014 3 16782
[LeetCode] Reach a Number 达到一个数字

You are standing at position 0 on an infinite number line. There is a goal at position target. On each move, you can either go left or right. ...

Wed Feb 21 07:44:00 CST 2018 4 4468
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM