双指针
文章平均质量分 71
liuchenjane
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
408. Valid Word Abbreviation
408. Valid Word Abbreviation Given a non-empty string s and an abbreviation abbr, return whether the string matches with the given abbreviation. A string such as "word" contains only the followin原创 2016-10-02 21:39:44 · 622 阅读 · 0 评论 -
Single Number问题总结
136. Single Number Question Editorial Solution My Submissions Total Accepted: 154584Total Submissions: 299024Difficulty: Easy Given an array of integers, every element转载 2016-09-16 18:35:38 · 596 阅读 · 0 评论 -
392. Is Subsequence
392. Is Subsequence Question Editorial Solution My Submissions Total Accepted: 5098Total Submissions: 11532Difficulty: Medium Given a string s and a string t, check if原创 2016-09-13 15:39:14 · 517 阅读 · 0 评论 -
413. Arithmetic Slices
A sequence of number is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elements is the same.For example, these are arithmetic sequence:1,原创 2016-10-12 20:30:54 · 1447 阅读 · 0 评论 -
424. Longest Repeating Character Replacement
Given a string that consists of only uppercase English letters, you can replace any letter in the string with another letter at most k times. Find the length of a longest substring containing all repe原创 2016-10-16 15:34:09 · 1265 阅读 · 0 评论 -
44. Wildcard Matching
Implement wildcard pattern matching with support for '?' and '*'. '?' Matches any single character. '*' Matches any sequence of characters (including the empty sequence). The matching should cover t原创 2017-02-10 16:02:12 · 374 阅读 · 0 评论 -
循环链表的判断
重新理解了快慢指针,判断是否有循环这一问题。 142. Linked List Cycle II 287. Find the Duplicate Number 先看第一个:判断循环链表 Given a linked list, return the node where the cycle begins. If there is no cycle, return null.Note: Do转载 2017-03-04 21:28:30 · 1764 阅读 · 0 评论
分享