String
文章平均质量分 51
CrazyAoli
这个作者很懒,什么都没留下…
展开
-
[String][6]Lintcode1790. Rotate String II
Lintcode 1790. Rotate String II描述Given a string(Given in the way of char array), a right offset and a left offset, move the string according to the given offset and save it in a new result set. (left offest represents the offset of a string to the left,r原创 2021-01-31 09:03:00 · 106 阅读 · 0 评论 -
[String][3]Leetcode125. Valid Palindrome
125. Valid PalindromeGiven a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.Note: For the purpose of this problem, we define empty string as valid palindrome.Example 1:Input: "A man, a plan, a canal原创 2021-01-30 23:52:06 · 98 阅读 · 0 评论 -
[String][2]Leetcode28. Implement strStr()
Implement strStr().Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.Clarification:What should we return when needle is an empty string? This is a great question to ask during an interview.For the p原创 2021-01-30 11:16:24 · 76 阅读 · 0 评论