码迷,mamicode.com
首页 >  
搜索关键字:number    ( 26994个结果
UVa679:Dropping Balls
Dropping BallsA number of K balls are dropped one by one from the root of a fully binary tree structure FBT. Each time the ball ...
分类:其他好文   时间:2015-02-01 00:26:17    阅读次数:175
LeetCode Letter Combinations of a Phone Number
Given a digit string, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on the telephone buttons) is given below. Input:Digit st...
分类:其他好文   时间:2015-01-31 20:40:11    阅读次数:119
Edit Distance
https://oj.leetcode.com/problems/edit-distance/Given two wordsword1andword2, find the minimum number of steps required to convertword1toword2. (each o...
分类:其他好文   时间:2015-01-31 20:35:21    阅读次数:203
leetcode 39: Combination Sum
Total Accepted: 32226 Total Submissions: 117691 Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. ...
分类:其他好文   时间:2015-01-31 16:21:19    阅读次数:137
SQL(oracle) 取得分组后最大值记录
select * from? (select t.*, row_number() over(partition by 分组字段 order by 排序字段 desc ) rn from tablename t ) where rn=1 select * ? from (select t.*, ? ? ? ? ? ? ? ?row_number() over...
分类:数据库   时间:2015-01-31 14:52:59    阅读次数:127
[LeetCode]Two Sum
Q: 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 to the targe...
分类:其他好文   时间:2015-01-31 14:40:36    阅读次数:225
(中等) HDU 3335 , DLX+重复覆盖。
Description As we know,the fzu AekdyCoin is famous of math,especially in the field of number theory.So,many people call him "the descendant of Chen...
分类:其他好文   时间:2015-01-31 14:22:35    阅读次数:290
[LeetCode] Single Number II 单独的数字之二
Given an array of integers, every element appearsthreetimes except for one. Find that single one.Note:Your algorithm should have a linear runtime comp...
分类:其他好文   时间:2015-01-31 14:21:18    阅读次数:324
欧拉计划(python) problem 20
Factorial digit sum Problem 20 n! means n × (n ? 1) × ... × 3 × 2 × 1 For example, 10! = 10 × 9 × ... × 3 × 2 × 1 = 3628800, and the sum of the digits in the number 10! is 3 + 6 + 2 + 8 + ...
分类:编程语言   时间:2015-01-31 13:00:55    阅读次数:177
52.N-Queens II (n皇后问题,返回可能数,回溯,递归实现)
Follow up for N-Queens problem. Now, instead outputting board configurations, return the total number ofdistinct solutions. HideTags  Backtracking #pragma once #include using namespace s...
分类:其他好文   时间:2015-01-31 12:50:03    阅读次数:148
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!