码迷,mamicode.com
首页 >  
搜索关键字:numbers    ( 7657个结果
LA 4727
Integers1, 2, 3,...,nare placed on a circle in the increasing order as in the following figure. We want to construct a sequence from these numbers on ...
分类:其他好文   时间:2014-05-14 02:54:10    阅读次数:354
poj 1715 Hexadecimal Numbers 排列组合
1 /** 2 大意: 给定16进制数的16个字母,,求第k大的数,,要求数的长度最大为8.,并且每个数互不相同。 3 思路: 从高到低挨个枚举,每一位能组成的排列数 ,拿最高位来说,能做成的排列数为15*A(15,len-i) 4 第二位 A(14,len-2)。。这样就可以...
分类:其他好文   时间:2014-05-13 21:58:38    阅读次数:402
[leetcode]Sum Root to Leaf Numbers @ Python
原题地址:http://oj.leetcode.com/problems/sum-root-to-leaf-numbers/题意:Given a binary tree containing digits from0-9only, each root-to-leaf path could repre...
分类:编程语言   时间:2014-05-12 01:28:30    阅读次数:440
leetcode --day12 Surrounded Regions & Sum Root to Leaf Numbers & Longest Consecutive Sequence
1、 ?? Surrounded Regions Given a 2D board containing 'X' and 'O', capture all regions surrounded by 'X'. A region is captured by flipping all 'O's into 'X's in that surrounded region. For e...
分类:其他好文   时间:2014-05-11 18:52:32    阅读次数:293
Leetcode | Multiply Strings
Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-nega...
分类:其他好文   时间:2014-05-11 14:35:13    阅读次数:270
一维数组元素的输入输出方法总结
1、数组的下标法:直观且容易理解如:int a[5],i;printf("Input five numbers:");for(i=0;i<5;i++){scanf("%d",&a[i]);}for(i=0;i<5;i++){ printf("%4d",a[i]);}2、数组名首地址法(指针法):指针...
分类:其他好文   时间:2014-05-11 00:35:46    阅读次数:351
转:一个java教程各章节的链接
Java概述,Java是什么?Java环境变量设置Java基本语法Java对象和类Java基本数据类型Java变量类型Java修饰符类型Java基本运算符Java循环for, while和do...whileJava决策制定Java Numbers类Java String类Java数组Java日期时...
分类:编程语言   时间:2014-05-10 00:49:04    阅读次数:415
Highly divisible triangular number
我的那个暴力求解,太耗时间了。用了网上产的什么因式分解,质因数之类的。确实快!还是数学基础不行,只能知道大约。The sequence of triangle numbers is generated by adding the natural numbers. So the 7th triangl...
分类:其他好文   时间:2014-05-09 23:43:16    阅读次数:342
Largest product in a grid
这个比前面的要复杂点,但找对了规律,还是可以的。我逻辑思维不强,只好画图来数数列的下标了。分四次计算,存入最大值。左右一次,上下一次,左斜一次,右斜一次。In the 2020 grid below, four numbers along a diagonal line have been mark...
分类:其他好文   时间:2014-05-09 13:39:56    阅读次数:412
some simple recursive lisp programs
1. Write a procedure count-list to count the number of elements in a list1 (defun count-list (numbers)2 (if (null numbers) 03 (+ 1 (co...
分类:其他好文   时间:2014-05-09 05:41:41    阅读次数:307
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!