21.合并两个有序链表 将两个有序链表合并为一个新的有序链表并返回。新链表是通过拼接给定的两个链表的所有节点组成的。 示例: An easy python solution: python Definition for singly linked list. class ListNode(objec ...
分类:
其他好文 时间:
2019-06-28 22:55:25
阅读次数:
112
两数平方和 "633. Sum of Square Numbers (Easy)" 题目描述: 判断一个数是否为两个数的平方和。 代码: java public boolean judgeSquareSum(int c){ int i=0; int j=(int)Math.s ...
分类:
其他好文 时间:
2019-06-28 19:42:23
阅读次数:
77
回文字符串 "680. Valid Palindrome II (Easy)" 题目描述: 可以删除一个字符,判断是否能够构成回文字符串。 代码: java public boolean validPalindrome(String s){ int i== 1; int j= ...
分类:
其他好文 时间:
2019-06-28 19:30:41
阅读次数:
87
To Lower Case & Remove Outermost Parentheses 这两道题为Easy级别,主要考察字符串相关知识点与括号匹配问题,整体难度不大。 ...
分类:
其他好文 时间:
2019-06-27 00:36:04
阅读次数:
87
problem 682. Baseball Game 参考 1. Leetcode_easy_682. Baseball Game; 完 ...
分类:
其他好文 时间:
2019-06-26 17:58:16
阅读次数:
103
problem 680. Valid Palindrome II 参考 1. Leetcode_easy_680. Valid Palindrome II; 完 ...
分类:
其他好文 时间:
2019-06-26 17:54:47
阅读次数:
105
1 2 3 4 5 6 7 sudo pip install redis or sudo easy_install redis or 源码安装 详见:https://github.com/WoLpH/redis-py 1 2 3 4 5 6 7 sudo pip install redis or s ...
分类:
编程语言 时间:
2019-06-25 17:11:30
阅读次数:
122
problem 617. Merge Two Binary Trees 参考 1. Leetcode_easy_617. Merge Two Binary Trees; 完 完 ...
分类:
其他好文 时间:
2019-06-24 12:25:05
阅读次数:
72
problem 628. Maximum Product of Three Numbers 参考 1. Leetcode_easy_628. Maximum Product of Three Numbers; 完 ...
分类:
其他好文 时间:
2019-06-24 12:20:21
阅读次数:
92
Algorithm。主要是为了编程训练和学习。 每周至少做一个 leetcode 的算法题(先从Easy开始,然后再Medium,最后才Hard)。 进行编程训练,如果不训练你看再多的算法书,你依然不会做算法题,看完书后,你需要训练。 关于做Leetcode的的优势,你可以看一下我在coolshel ...
分类:
其他好文 时间:
2019-06-24 00:52:19
阅读次数:
79