
LeetCode-TwoPointers
R_zz
这个作者很懒,什么都没留下…
展开
-
LeetCode-167. Two Sum II - Input array is sorted
问题:https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/?tab=Description Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a spe原创 2017-02-22 21:26:59 · 167 阅读 · 0 评论 -
LeetCode-345. Reverse Vowels of a String
问题:https://leetcode.com/problems/reverse-vowels-of-a-string/?tab=Description Write a function that takes a string as input and reverse only the vowels of a string. 反转字符中的元音字符。 Example 1:Given s = “h原创 2017-02-23 11:13:24 · 166 阅读 · 0 评论 -
LeetCode-125. Valid Palindrome
问题:https://leetcode.com/problems/valid-palindrome/?tab=Description Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.给定一个字符串,确定它是否是回文的,仅考虑其中的原创 2017-02-23 15:17:07 · 172 阅读 · 0 评论 -
LeetCode-28. Implement strStr()
问题:https://leetcode.com/problems/implement-strstr/?tab=Description Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. 给两个字符串,求原创 2017-02-23 15:35:43 · 177 阅读 · 0 评论