hDo
hDo
全部文章
LeetCode
Spring注解(1)
学习记录(7)
未归档(30)
归档
标签
去牛客网
登录
/
注册
为中华之崛起而秃
This is Jerry
全部文章
/ LeetCode
(共4篇)
LeetCode-486 预测赢家
minimax class Solution { public boolean PredictTheWinner(int[] nums) { if(nums==null || nums.length==0) return true; r...
LeetCode
2019-08-28
1
711
LeetCode-62 不同路径
解法: 动态规划 时间O(n*m) 空间(n*m) class Solution { public int uniquePaths(int m, int n) { if(m==1 && n==1){ return 1; ...
LeetCode
2019-08-26
0
542
LeetCode-650 只有两个键的键盘
使用因数分解的方法 如果这个数是素数那么就返回这个数,如果可以分解,就分解求。 class Solution { public int minSteps(int n) { int[] dp = new int[n+1]; //dp[i]表示打印i个的最少操作 ...
LeetCode
2019-08-25
0
564
LeetCode-1025 除数博弈
方法1:递归回溯(超时) class Solution { public boolean divisorGame(int N) { return canWin(N); } public boolean canWin(int N){ ...
LeetCode
2019-08-25
0
527