
字符串题型
POFEI_IS_SHIT
不是我针对谁,在座的各位都是垃圾
展开
-
5. 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:Input: "babad"Output: "bab"Note: "aba" is also a valid answer.Example:Input: "原创 2017-06-10 21:04:24 · 168 阅读 · 0 评论 -
14. Longest Common Prefix
Write a function to find the longest common prefix string amongst an array of strings.题意:最长公共前缀class Solution { public: string longestCommonPrefix(vector<string>& strs) { int len = strs.siz原创 2017-06-11 12:33:16 · 169 阅读 · 0 评论 -
3.Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters.Examples:Given “abcabcbb”, the answer is “abc”, which the length is 3.Given “bbbbb”, the answer is “b”, with the le原创 2017-06-10 20:16:23 · 191 阅读 · 0 评论 -
214. Shortest Palindrome
Given a string s, you are allowed to convert it to a palindrome by adding characters in front of it. Find and return the shortest palindrome you can find by performing this transformation.Example 1:In...原创 2018-05-11 20:50:52 · 285 阅读 · 0 评论