
LeetCode
文章平均质量分 69
东大学子
Talk is cheap. Show me the code.
展开
-
LeetCode5-最长回文子串
官网地址:https://leetcode-cn.com/problems/longest-palindromic-substring/solution/zui-chang-hui-wen-zi-chuan-by-leetcode-solution/一、解法一:动态规划记P[i][j]为(i,j)子串,则不难得出:原创 2021-03-14 12:28:16 · 212 阅读 · 0 评论 -
Container With Most Water
Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Fin原创 2015-05-13 21:56:56 · 475 阅读 · 0 评论