- 博客(4)
- 收藏
- 关注
原创 [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 98
原创 [Leetcode] Reverse Integer 整数翻转
Given a 32-bit signed integer, reverse digits of an integer.Example 1:Input: 123 Output: 321 Example 2:Input: -123 Output: -321 Example 3:Input: 120 Output: 21 Note:Assume we are dealing with an envir...
2018-07-13 15:14:02 111
原创 [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 N A P L S I I G ...
2018-07-13 13:46:44 104
原创 [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 77
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人