引言:lambda表达式在STL应用中可以让我们起到十分便捷的功能,我们看下微软的解释。When you write code, you probably use function pointers and function objects to solve problems and perform...
分类:
编程语言 时间:
2015-07-15 14:53:46
阅读次数:
194
链接:https://leetcode.com/problems/minimum-size-subarray-sum/
问题描述:
Given an array of n positive integers and a positive integer s, find the minimal length of a subarray of which the sum ≥ s. If there...
分类:
其他好文 时间:
2015-07-15 09:34:47
阅读次数:
116
88 Merge Sorted Array链接:https://leetcode.com/problems/merge-sorted-array/
问题描述:
Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.Note:
You may assume that...
分类:
其他好文 时间:
2015-07-15 09:34:01
阅读次数:
89
3942 - Remember the Word
Neal is very curious about combinatorial problems, and now here comes a problem about words. Knowing that Ray has a photographic memory and this may not trouble him, Neal...
分类:
其他好文 时间:
2015-07-14 18:07:32
阅读次数:
156
234 Palindrome Linked List链接:https://leetcode.com/problems/palindrome-linked-list/
问题描述:
Given a singly linked list, determine if it is a palindrome.Follow up:
Could you do it in O(n) time and O(...
分类:
其他好文 时间:
2015-07-14 18:06:54
阅读次数:
85
题目链接:https://leetcode.com/problems/generate-parentheses/
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.
For example, given n = 3, a...
分类:
其他好文 时间:
2015-07-14 18:01:42
阅读次数:
106
题目链接:https://leetcode.com/problems/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: ...
分类:
其他好文 时间:
2015-07-14 15:50:20
阅读次数:
122
链接:https://leetcode.com/problems/remove-duplicates-from-sorted-array/
问题描述:
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do n...
分类:
其他好文 时间:
2015-07-14 15:39:00
阅读次数:
103
80 Remove Duplicates from Sorted Array II链接:https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/
问题描述:
Follow up for “Remove Duplicates”:
What if duplicates are allowed at most twic...
分类:
其他好文 时间:
2015-07-14 15:37:17
阅读次数:
86
题目链接:https://leetcode.com/problems/valid-parentheses/
Given a string containing just the characters '(', ')','{', '}', '[' and ']',
determine if the input string is valid.
The brackets m...
分类:
其他好文 时间:
2015-07-14 15:37:03
阅读次数:
109