码迷,mamicode.com
首页 >  
搜索关键字:numbers range    ( 16974个结果
Two Sum
1.hashMap方法O(n)空间换时间public class Solution { public int[] twoSum(int[] numbers, int target) { HashMap hash=new HashMap(); int ans[]=ne...
分类:其他好文   时间:2014-07-23 22:20:57    阅读次数:262
[leetcode]Next Permutation
Next PermutationImplement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arrangemen...
分类:其他好文   时间:2014-07-23 20:34:45    阅读次数:206
LeetCode:Decode Ways
A message containing letters from A-Z is being encoded to numbers using the following mapping: 'A' -> 1 'B' -> 2 ... 'Z' -> 26 Given an encoded message containing digits, determine the total numb...
分类:其他好文   时间:2014-07-23 17:06:05    阅读次数:324
[leetcode]Add Two Numbers
Add Two NumbersYou are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes co...
分类:其他好文   时间:2014-07-23 16:51:51    阅读次数:251
mobile crusher
we offers a wide range of medium mobile crusher, screening and scalping solutions for quarrying, recycling, contracting and mining applications. Our m...
分类:其他好文   时间:2014-07-23 16:12:51    阅读次数:189
Bag Golf Equipment Is More Functional
Variety Merchandise - top directory usually found large bags attract Australia on top of the range solution for blogs and articles about the content o...
分类:其他好文   时间:2014-07-23 12:31:06    阅读次数:296
HDU1711 最基础的kmp算法
Problem DescriptionGiven two sequences of numbers : a[1], a[2], ...... , a[N], and b[1], b[2], ...... , b[M] (1 2 #include 3 using namespace std; 4 .....
分类:其他好文   时间:2014-07-23 12:27:06    阅读次数:252
【leetcode刷题笔记】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-07-23 12:20:16    阅读次数:205
OJ1 Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:其他好文   时间:2014-07-23 12:03:26    阅读次数:287
Remove Duplicates from Sorted List II leetcode java
题目:Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.For example,Given 1....
分类:编程语言   时间:2014-07-23 12:01:46    阅读次数:312
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!