摘要: 原题链接: "https://leetcode.com/problems/first bad version/description/" `` 实现如下: Java / Created by clearbug on 2018/4/6. / public class VersionControlSol 阅读全文
posted @ 2018-04-06 19:22 optor 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 原题链接: "https://leetcode.com/articles/palindrome permutation/" 这道题目很简单: Java / Created by clearbug on 2018/2/26. / public class Solution { public stati 阅读全文
posted @ 2018-04-06 18:56 optor 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 原题链接: "https://leetcode.com/problems/ugly number ii/description/" 《剑指Offer》上面的原题,我已经看过解答了,就不废话了: Java / Created by clearbug on 2018/2/26. / public cla 阅读全文
posted @ 2018-04-06 18:16 optor 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 这个题目在 LeetCode 上有原题,直接看下面刷的 LeetCode 吧! "http://www.cnblogs.com/optor/p/8728322.html" "http://www.cnblogs.com/optor/p/8728409.html" 阅读全文
posted @ 2018-04-06 17:42 optor 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 原题链接: "https://leetcode.com/problems/ugly number/description/" 实现如下: Java / Created by clearbug on 2018/2/26. / public class Solution { public static 阅读全文
posted @ 2018-04-06 17:42 optor 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 原题链接: "https://leetcode.com/problems/add digits/description/" 实现如下: Java / Created by clearbug on 2018/2/26. / public class Solution { public static v 阅读全文
posted @ 2018-04-06 17:11 optor 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 原题链接: "https://leetcode.com/problems/binary tree paths/description/" 直接走一波深度优先遍历: 不过这道题目我的实现还是写复杂了,提交区有的是简洁高效的代码。。。都怪自己基础不好啊!!! 阅读全文
posted @ 2018-04-06 12:20 optor 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 原题链接: "https://leetcode.com/problems/valid anagram/solution/" 实现如下: Java import java.util.Arrays; / Created by clearbug on 2018/2/26. / public class S 阅读全文
posted @ 2018-04-06 11:27 optor 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 原题链接: "https://leetcode.com/problems/delete node in a linked list/description/" 实现如下: 参考 "https://blog.csdn.net/sunao2002002/article/details/47083975" 阅读全文
posted @ 2018-04-06 10:39 optor 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 原题链接: "https://leetcode.com/problems/implement queue using stacks/description/" 实现如下: 阅读全文
posted @ 2018-04-06 10:28 optor 阅读(122) 评论(0) 推荐(0) 编辑