![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode之string
Shawn_Redemption
这个作者很懒,什么都没留下…
展开
-
【Leetcode】Count and Say
The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1 is read off as "one 1" or 11.11 is read off as "two 1s" or 21.21 is read off as原创 2014-11-10 10:06:50 · 1025 阅读 · 0 评论 -
【Leetcode】Longest Common Prefix
Write a function to find the longest common prefix string amongst an array of strings.这道题典型cai'yon原创 2014-11-10 23:51:35 · 376 阅读 · 0 评论 -
【Leetcode】ZigZag Conversion
public String convert(String s, int nRows) { if (s == null || s.length() == 0 || nRows <= 0) return ""; if (nRows == 1) return s; StringBuilder res = new StringBuilder(); int size = 2 *原创 2014-11-11 08:44:26 · 345 阅读 · 0 评论 -
【Leetcode】Valid Palindrome
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: Panama" is a palindrome."race a car" is not a原创 2014-11-11 00:24:59 · 320 阅读 · 0 评论 -
【Leetcode】Length of Last Word
这道题让找最后yi'ge原创 2014-10-29 10:01:28 · 312 阅读 · 0 评论 -
【Leetcode】Valid Parentheses
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets must close in the correct order, "()" and "()[]{}" are all va原创 2014-11-06 11:22:11 · 326 阅读 · 0 评论