码迷,mamicode.com
首页 >  
搜索关键字:number    ( 26994个结果
Single Number
https://oj.leetcode.com/problems/single-number/Given an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your al...
分类:其他好文   时间:2015-01-13 14:16:55    阅读次数:141
Excel Sheet Column Number
https://oj.leetcode.com/problems/excel-sheet-column-number/Related to questionExcel Sheet Column TitleGiven a column title as appear in an Excel sheet...
分类:其他好文   时间:2015-01-13 14:16:34    阅读次数:141
Maximum Depth of Binary Tree
https://oj.leetcode.com/problems/maximum-depth-of-binary-tree/Given a binary tree, find its maximum depth.The maximum depth is the number of nodes alo...
分类:其他好文   时间:2015-01-13 14:13:55    阅读次数:105
leetcode-combination sum and combination sum II
Combination sum: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-13 14:08:00    阅读次数:100
Two Sum
https://oj.leetcode.com/problems/two-sum/Given an array of integers, find two numbers such that they add up to a specific target number.The function t...
分类:其他好文   时间:2015-01-13 14:07:07    阅读次数:130
HDOJ 2008
#include "stdio.h"int main(void){ int num; while(scanf("%d", &num), num){ int i; double number; int Zcount = 0, Fcount = 0, zero = 0; for(i=0; ...
分类:其他好文   时间:2015-01-13 14:03:31    阅读次数:128
[leetcode] Letter Combinations of a Phone Number
Letter Combinations of a Phone NumberGiven a digit string, return all possible letter combinations that the number could represent.A mapping of digit ...
分类:其他好文   时间:2015-01-13 14:03:28    阅读次数:226
JavaScript 之 parseInt
首先还是从很热门的实例parseInt("09")==0说起。parseInt(number,type)这个函数后面如果不跟第2个参数来表示进制的话,默认是10进制。比如说parseInt("010",10)就是10进制的结果:10,parseInt("010",2)就是2进制的结果:2,parse...
分类:编程语言   时间:2015-01-13 12:11:59    阅读次数:114
LeetCode题解 || Two Sum问题
question: 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 ...
分类:其他好文   时间:2015-01-13 10:32:21    阅读次数:139
[leetcode]Largest Number
给一组数字求拼起来最大的那个,其实按照我们的想法就是把大的放前面呗,那到底哪个大呢。数字a,b拼接起来就是ab,或者ba看这两个哪个大,就ab大就把a放前面,ba大就把b放前面。排个序就好。。。注意考虑都是0的情况。。。(因为下面我们用的是字符串class Solution {public: ...
分类:其他好文   时间:2015-01-13 10:28:45    阅读次数:106
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!