题目 https://leetcode.com/problems/longest-palindromic-substring/submissions/ 思路 毫无疑问是动态规...
题目 https://leetcode.com/problems/longest-palindromic-substring/submissions/ 思路 毫无疑问是动态规...
题目 https://leetcode.com/problems/longest-substring-without-repeating-characters/ 枚举所有子串...
题目 https://leetcode.com/problems/add-two-numbers/ 思路 遍历两个列表,逐步加和,直到两个列表都为空 增加进位值存储 新建一个...
题目 https://leetcode.com/problems/two-sum/ 思路 盲猜N^2的遍历会超时,没有试。O(N)的遍历需要用到哈希表,直接用map存值和对应...
java内存模型
想好了吗?