題目 https://leetcode.com/problems/longest-palindromic-substring/submissions/ 思路 毫無(wú)疑問(wèn)是動(dòng)態(tài)規(guī)...
題目 https://leetcode.com/problems/longest-palindromic-substring/submissions/ 思路 毫無(wú)疑問(wèn)是動(dòng)態(tài)規(guī)...
題目 https://leetcode.com/problems/longest-substring-without-repeating-characters/ 枚舉所有子串...
題目 https://leetcode.com/problems/add-two-numbers/ 思路 遍歷兩個(gè)列表,逐步加和,直到兩個(gè)列表都為空 增加進(jìn)位值存儲(chǔ) 新建一個(gè)...
題目 https://leetcode.com/problems/two-sum/ 思路 盲猜N^2的遍歷會(huì)超時(shí),沒(méi)有試。O(N)的遍歷需要用到哈希表,直接用map存值和對(duì)應(yīng)...