- 博客(4)
- 收藏
- 关注
原创 49.leetcode题目18. 4Sum
题目: Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target. Note:
2016-05-30 14:36:38 306
原创 48.leetcode题目17. Letter Combinations of a Phone Number
(好久不记录,但其实一直有缓慢的做,坚持不放弃,纯当记录一下思路,下次要边做题边写,每次做完题再来写就没感觉了。) 题目: Given a digit string, return all possible letter combinations that the number could represent. A mapping of digit to letters (jus
2016-05-24 22:44:28 327
原创 6.关联容器
前言:今天下午接到了百度的电话面试,被虐得体无完肤。。所以立马决定刷题。 正文:set容器是STL中的关联容器,是基于红黑树的。 set作为一个容器也是用来存储同一数据类型的数据类型,并且能从一个数据集合中取出数据,在set中每个元素的值都唯一,而且系统能根据元素的值自动进行排序。
2016-05-08 19:19:46 348
原创 47.leetcode题目2. Add Two Numbers
class Solution { public: ListNode* addTwoNumbers(ListNode* l1, ListNode* l2) { ListNode *result=NULL,*next,*temp;//ListNode *result,*next,*temp;未通过编译 ListNode *l11=l1,*l22=l2;
2016-05-03 14:29:32 236
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人