leetcode
liqiming100
这个作者很懒,什么都没留下…
展开
-
Valid Perfect Square
class Solution {public: bool isPerfectSquare(int num) { if ( num == 0 ) { return true; } if ( num == 1 ) { return true; }...原创 2019-11-18 22:52:46 · 119 阅读 · 0 评论 -
leetcode 1137
class Solution {public: int tribonacci(int n) { int result = 0; if ( n <= 1 ) { return n; } if ( n == 2 ) { return 1; ...原创 2019-11-13 22:15:30 · 144 阅读 · 0 评论