摘要:
未经博主同意,禁止瞎JB转载。 LeetCode53最大子序和 https://leetcode-cn.com/problems/maximum-subarray/description/ 我的解法: 其实11-13行可以删除,变成: 更好的解决方案参考: https://blog.csdn.net 阅读全文
摘要:
未经博主同意,禁止瞎JB转载。 LeetCode26删除排序数组中的重复项 https://leetcode-cn.com/problems/remove-duplicates-from-sorted-array/description/ 参考答案做的。 答案: https://leetcode-c 阅读全文
摘要:
未经博主同意,禁止瞎JB转载。 LeetCode21合并两个有序链表 https://leetcode-cn.com/problems/merge-two-sorted-lists/description/ 这一题在剑指offer上也有 我的解法: 阅读全文
摘要:
未经博主同意,禁止瞎JB转载。 LeetCode20有效的括号 https://leetcode-cn.com/problems/valid-parentheses/description/ 我的解法: 示例如下: 利用了栈的思想,使用两个列表实现配对,与官方提供的解答是一样的,但是写的就比较麻烦。 阅读全文