---不包含jiuzhang ladders中出现过的题。如出现多个方法,则最后一个方法是最优解。

 目录:

1 String

2 Two pointers

3 Array

4 DFS && BFS

5 Math

6 Dynamic Programming

7 Data Structure

8 Binary Search

9 Tree

10 Bit Manipulation

11 Linked List

12 graph

 

1.1  Longest Palindromic Substring --- bug free

求一个字符串中的最长回文子串

求一个字符串中的最长回文子串。

Example:

Input: "babad"

Output: "bab"

Note: "aba" is also a valid answer.

Example:

Input: "cbbd"

Output: "bb"
View Code

相关文章:

  • 2021-05-17
  • 2021-06-01
  • 2021-05-25
  • 2021-07-26
  • 2022-12-23
  • 2021-09-05
猜你喜欢
  • 2021-10-13
  • 2021-11-12
  • 2022-02-25
  • 2021-06-04
  • 2021-09-17
  • 2021-11-11
  • 2022-12-23
相关资源
相似解决方案