码迷,mamicode.com
首页 >  
搜索关键字:ztr loves lucky numbers    ( 8622个结果
10.排序数组中和为给定值的两个数字
Find 2 numbers with given sum in sorted array.
分类:其他好文   时间:2014-05-22 01:53:17    阅读次数:288
34.数组中只出现一次的数字
Find a number which appears once in an array with all the other numbers appear twice.
分类:其他好文   时间:2014-05-22 01:08:40    阅读次数:278
37.寻找丑数
Ugly numbers.
分类:其他好文   时间:2014-05-22 01:05:17    阅读次数:346
5.29 调整数组顺序使奇数位于偶数前面(QuickSort)
Reorder an array so that odd numbers come before even numbers.
分类:其他好文   时间:2014-05-22 00:38:39    阅读次数:259
38.输出1到最大的N位数
Print 1 to max N bits numbers.
分类:其他好文   时间:2014-05-22 00:21:45    阅读次数:241
【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-05-21 17:51:09    阅读次数:190
LeetCode: Combination Sum II [039]
【题目】 Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. Each number in C may only be used once in the combination. Note: All numbers (including target) will be ...
分类:其他好文   时间:2014-05-21 15:55:25    阅读次数:259
leetcode -day20 Add Two Numbers
1、 ?? Add Two Numbers  You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two num...
分类:其他好文   时间:2014-05-21 10:49:10    阅读次数:221
UVA 10712 - Count the Numbers (数位DP)
UVA 10712 - Count the Numbers 题目链接 题意:求区间[A,B]数字中,子串包含N的数字有多少个 思路:数位DP,写了个记忆化乱搞搞过了,dp[i][j][2][2][2],分别表示i位的时候,末尾为j的情况,后面3维用来处理小于的情况,已经出现过子串的情况,前导0的情况,然后注意特判一下数字0的情况,因为一开始要分解数字,而0是不能分解的。 代...
分类:其他好文   时间:2014-05-21 09:11:44    阅读次数:264
LeetCode: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 numbers such that they add up t...
分类:其他好文   时间:2014-05-21 07:42:18    阅读次数:230
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!