![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LeetCode
雨破尘
B What I Wanna B
展开
-
LeetCode198:打家劫舍
题目描述: 示例: 运行结果: 代码: class Solution { public static int[] result; public int slove(int idx, int[] nums){ if(idx < 0){ return 0; } if(resu...原创 2018-07-28 14:37:50 · 448 阅读 · 0 评论 -
LeetCode072:编辑距离
题目描述: 示例: 运行结果: 代码: class Solution { public int minDistance(String word1, String word2) { char[] a = word1.toCharArray(); char[] b = word2.toCharArray(); int[][...原创 2018-07-29 21:53:59 · 311 阅读 · 0 评论 -
LeetCode055:跳跃游戏
实验平台:LeetCode 代码地址:my github 题目描述: 示例: 方法一 运行结果: 代码: class Solution { public boolean canJump(int[] nums) { int numLen = nums.length; boolean[] canJump = new bool...原创 2018-08-12 17:10:13 · 331 阅读 · 0 评论 -
LeetCode062:不同路径
实验平台:LeetCode 代码地址:my github 题目描述: 示例: 运行结果: 代码: class Solution { public int uniquePaths(int m, int n) { int[][] result = new int[m][n]; for (int i = 0; i < n; i...原创 2018-08-12 21:23:56 · 312 阅读 · 0 评论 -
LeetCode001~010
实验平台:LeetCode 代码地址:my github LeetCode001:两数之和 题目描述: 示例: 运行结果: 代码: class Solution { public int[] twoSum(int[] nums, int target) { Map&amp;amp;amp;amp;amp;amp;lt;Integer, Integer&amp;amp;amp;amp;amp;amp;gt; map =原创 2018-08-19 18:56:54 · 444 阅读 · 0 评论