码迷,mamicode.com
首页 >  
搜索关键字:add two numbers    ( 52886个结果
uva 103 Stacking Boxes
Background Some concepts in Mathematics and Computer Science are simple in one or two dimensions but become more complex when extended to arbitrary dimensions. Consider solving differential equations...
分类:其他好文   时间:2014-05-26 04:31:34    阅读次数:234
leetcode题目:Sum Root to Leaf Numbers和Longest Consecutive Sequence
题目一: Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An example is the root-to-leaf path 1->2->3 which represents the number 123. Fin...
分类:其他好文   时间:2014-05-26 04:06:41    阅读次数:248
欧拉项目010:2000000以内的素数和
Summation of primes Problem 10 The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below two million. 还是使用Sieve of Eratosthenes 算法 我的python代码如下: ...
分类:其他好文   时间:2014-05-26 03:40:15    阅读次数:243
[LeetCode]Divide Two Integers
Divide Two Integers...
分类:其他好文   时间:2014-05-26 03:39:56    阅读次数:184
Struts2框架中书写XML配置文件时能添加提示技巧(方案二)
1、  先在/工程名/WebRoot/WEB-INF/lib/struts2-core-2.1.8.jar中找到struts-2.1.dtd文件。 2、  在Myeclipse8.6——》Window——》Preferences 3、  在搜索框输入xml文件,找到XMLCatalog,单击XML Catalog出现如上页面,之后单击Add按钮,出现如下图:...
分类:其他好文   时间:2014-05-24 23:46:52    阅读次数:471
Python基础1--变量类型
首先,在之前,我不是一个 Python玩家,我只是一个使用者,需要即取,现在,我要认真学习和记录,正确称为一个Python的玩家。 说明,这明显不是教程,是我自己理解并记录的笔记而已。 Python有五个标准的数据类型: Numbers(数字)String(字符串)List(列表)Tuple(元组)Dictionary(字典) 数字有四种数值类型:int,long ,float...
分类:编程语言   时间:2014-05-24 23:07:59    阅读次数:387
LeetCode: N-Queens [050]
【题目】 The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other. Given an integer n, return all distinct solutions to the n-queens puzzle. Each solution contains a distinct board configuratio...
分类:其他好文   时间:2014-05-24 17:12:32    阅读次数:237
mysql基础操作、sql技巧和sql的常见优化
一、常见操作 1、复制表结构create table t2 like t1    复制表数据insert into t2 select * from t1 2、mysql索引    alter table用来创建普通索引、unique索引或primary key索引    alter table t add index index_name(column_list)    al...
分类:数据库   时间:2014-05-24 14:43:02    阅读次数:363
hust 1022 K-diff subsequence
题目描述If the difference between any two adjancent elements in a sequence is not more than K, then we call this sequence is a K-diff sequence. A subseque...
分类:其他好文   时间:2014-05-24 09:39:27    阅读次数:340
arrayList使用 与 foreach 使用
private void button1_Click(object sender, EventArgs e) { IList arrayAnimal = new ArrayList(); arrayAnimal.Add("12"); arrayAnimal.Add("df"); arrayA...
分类:其他好文   时间:2014-05-24 09:37:46    阅读次数:211
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!