码迷,mamicode.com
首页 >  
搜索关键字:problems    ( 6275个结果
Windows 相关
Open the Windows Update troubleshooterIf your computer is having problems finding and installing operating system updates, try using the Windows Updat...
分类:Windows程序   时间:2015-07-31 07:51:40    阅读次数:154
求数组的全排列
题目:https://leetcode.com/problems/permutations/题目要求是求一个数组的全排列,试过很多非递归的方法都不成功,感觉这题有递归会方便很多。解题思路是这样的,从数组中选出一个数,然后对数组中剩下的数进行全排列;维持一个result集合,里面存的是已经完成全排列的...
分类:编程语言   时间:2015-07-29 15:27:31    阅读次数:122
leetcode-Product of Array Except Self
https://leetcode.com/problems/product-of-array-except-self/Given an array of n integers where n > 1, nums, return an array output such that output[i] ...
分类:其他好文   时间:2015-07-29 15:26:48    阅读次数:95
leetcode-Merge Two Sorted Lists
https://leetcode.com/problems/merge-two-sorted-lists/class Solution: # @param {ListNode} l1 # @param {ListNode} l2 # @return {ListNode} de...
分类:其他好文   时间:2015-07-29 13:51:08    阅读次数:89
LeetCode-LRU Cache
链接:http://oj.leetcode.com/problems/lru-cache/ 参考:http://www.acmerblog.com/leetcode-lru-cache-lru-5745.html Design and implement a data structure for Least Recently Used (LRU) cache. It shoul...
分类:系统相关   时间:2015-07-28 18:36:30    阅读次数:174
LeetCode(3)题解: Longest Palindromic Substring
https://leetcode.com/problems/longest-palindromic-substring/题目:Given a stringS, find the longest palindromic substring inS. You may assume that the ma...
分类:其他好文   时间:2015-07-25 22:46:20    阅读次数:200
leetcode | Insert Interval
Insert Interval : https://leetcode.com/problems/insert-interval/Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary).You may assume that the intervals...
分类:其他好文   时间:2015-07-25 21:36:35    阅读次数:124
leetcode | Merge Intervals
Merge Intervals : https://leetcode.com/problems/merge-intervals/Given a collection of intervals, merge all overlapping intervals.For example, Given [1,3],[2,6],[8,10],[15,18], return [1,6],[8,10],[15...
分类:其他好文   时间:2015-07-25 18:29:50    阅读次数:125
[LeetCode] Kth Largest Element in an Array
https://leetcode.com/problems/kth-largest-element-in-an-array/ Find the kth largest element in an unsorted array. Note that it is the kth largest elem...
分类:其他好文   时间:2015-07-25 18:15:37    阅读次数:100
Best time to buy and sell stocks IV
题目https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/ Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum...
分类:其他好文   时间:2015-07-24 09:22:28    阅读次数:125
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!