![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode c++
文章平均质量分 79
chenlong226
这个作者很懒,什么都没留下…
展开
-
Add Two Numbers (c++)
题目:You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as原创 2014-04-25 12:41:19 · 803 阅读 · 0 评论 -
Longest Palindromic Substring (c++)
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substring.原创 2014-04-25 12:41:45 · 997 阅读 · 0 评论 -
LeetCode 求和问题总结(2sum,3sum,ksum)
求和问题总结(leetcode 2Sum, 3Sum, 4Sum, K Sum)前言:做过leetcode的人都知道, 里面有2sum, 3sum(closest), 4sum等问题, 这些也是面试里面经典的问题, 考察是否能够合理利用排序这个性质, 一步一步得到高效的算法. 经过总结, 本人觉得这些问题都可以使用一个通用的K sum求和问题加以概括消化, 这里我们先直接给出K转载 2014-04-26 17:24:51 · 4306 阅读 · 1 评论 -
Leetcode Merge k Sorted Lists
原题Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.原创 2014-05-23 21:43:43 · 629 阅读 · 0 评论 -
Leetcode Remove Nth Node From End of List
Given a linked list, remove the nth node from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After removing the second node from the end, the原创 2014-05-23 20:16:11 · 670 阅读 · 0 评论