![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Leetcode
mr xiaolu
这个作者很懒,什么都没留下…
展开
-
leetcode 24. Swap Nodes in Pairs
Given a linked list, swap every two adjacent nodes and return its head.For example,Given 1->2->3->4, you should return the list as 2->1->4->3.Your algorithm should use only constant space. Y原创 2016-02-25 10:32:57 · 282 阅读 · 0 评论 -
leetcode 28. Implement strStr()
Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.在字符串haystack中查找字符型needle,并返回第一次出现的位置。解答:c++中string类的查找操作,对应f原创 2016-02-25 11:39:43 · 361 阅读 · 0 评论 -
leetcode 30. Substring with Concatenation of All Words
You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a concatenation of each word in wordsexactly once and w原创 2016-02-29 13:31:10 · 333 阅读 · 0 评论