![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
edjoker2
这个作者很懒,什么都没留下…
展开
-
遍历string时 使用for(char& c : s) for(char c : s) 的区别
一道Leetcode上的题目: Given a string containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[’ and ‘]’, determine if the input string is valid. The brackets must close in the correct order, “()” an...原创 2018-02-27 09:01:51 · 15046 阅读 · 1 评论 -
利用双重指针来实现单向链表的节点交换
一道Leetcode中的题: 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 algo...原创 2018-04-02 08:53:31 · 300 阅读 · 0 评论