![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Leetcode
wangzhuohustor
这个作者很懒,什么都没留下…
展开
-
[Leetcode] Longest Palindromic Substring 最长回文子串
Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.Example 1:Input: "babad"Output: "bab"Note: "aba" is also a valid answer.Example 2:...原创 2018-07-13 09:56:27 · 66 阅读 · 0 评论 -
[Leetcode] ZigZag Conversion 锯齿形转换
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)P A H NA P L S I I G...原创 2018-07-13 13:46:44 · 95 阅读 · 0 评论 -
[Leetcode] Reverse Integer 整数翻转
Given a 32-bit signed integer, reverse digits of an integer.Example 1:Input: 123Output: 321Example 2:Input: -123Output: -321Example 3:Input: 120Output: 21Note:Assume we are dealing with an envir...原创 2018-07-13 15:14:02 · 101 阅读 · 0 评论 -
[Leetcode] Regular Expression Matching 正则匹配 (hard and important)
Given an input string (s) and a pattern (p), implement regular expression matching with support for '.' and '*'.'.' Matches any single character.'*' Matches zero or more of the preceding element.The...原创 2018-07-14 22:50:09 · 86 阅读 · 0 评论