码迷,mamicode.com
首页 >  
搜索关键字:all    ( 23290个结果
4Sum
Given an arraySofnintegers, are there elementsa,b,c, anddinSsuch thata+b+c+d= target? Find all unique quadruplets in the array which gives the sum of ...
分类:其他好文   时间:2014-06-04 22:44:27    阅读次数:250
Generate Parentheses
Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is:"((()))...
分类:其他好文   时间:2014-06-04 22:30:30    阅读次数:418
Minimum Path Sum
Given amxngrid filled with non-negative numbers, find a path from top left to bottom right whichminimizesthe sum of all numbers along its path.Note:Yo...
分类:其他好文   时间:2014-06-04 20:57:08    阅读次数:360
java导出数据Excel总结
//创建获取到JFileChooser的文件名的JTextField public JTextField getTextField(Container c){ JTextField textField = null; for (int i = 0; i all,HttpServletRespo...
分类:编程语言   时间:2014-06-04 20:55:56    阅读次数:452
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,18]./***Definition...
分类:其他好文   时间:2014-06-04 20:45:31    阅读次数:201
Remove Duplicates from Sorted List II
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving onlydistinctnumbers from the original list.For example,Given1->2->3-...
分类:其他好文   时间:2014-06-04 20:19:49    阅读次数:282
Combination Sum II
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Each number ...
分类:其他好文   时间:2014-06-04 20:14:25    阅读次数:287
Leetcode: Best Time to Buy and Sell Stock
My original thought was to calculate all the possible transactions by using nested loop. But got time limit excess error.I knew it can be done in O(n)...
分类:其他好文   时间:2014-05-29 20:44:37    阅读次数:271
Objective C - 3 - 实现一个计算器
代码//// CalculatorViewController.m// Calculator//// Created by sskset on 5/28/14.// Copyright (c) 2014 shanke. All rights reserved.//#import "Calcu...
分类:其他好文   时间:2014-05-29 20:42:34    阅读次数:305
[leetcode]Subsets II @ Python
原题地址:https://oj.leetcode.com/problems/subsets-ii/题意:Given a collection of integers that might contain duplicates,S, return all possible subsets.Note:E...
分类:编程语言   时间:2014-05-29 19:10:53    阅读次数:278
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!