码迷,mamicode.com
首页 >  
搜索关键字:guess numbers    ( 8263个结果
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
jsp---猜数字游戏,深有感触
猜数字游戏注意两点、1.随机数和猜的数字不能放在同一个页面,不然随机数不停出现,猜的数字不可能相等的。 2.数据类型的相互转换。包装类Integer和int的用法,前者是类,后者是基本数据类型cai.jsp 去猜数字----guess b.jsp ...
分类:Web程序   时间:2014-05-10 02:32:10    阅读次数:269
转:一个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
Special Pythagorean triplet
这个比较简单,慢慢进入状态。A Pythagorean triplet is a set of three natural numbers, a b c, for which,a2 + b2 = c2For example, 32 + 42 = 9 + 16 = 25 = 52.There ex.....
分类:其他好文   时间:2014-05-09 10:35:46    阅读次数:266
UIWebView中javascript与Objective-C交互、获取摄像头
UIWebView是iOS开发中常用的一个视图控件,多数情况下,它被用来显示HTML格式的内容。支持的文档格式除了HTML以外,UIWebView还支持iWork, Office等文档格式:Excel (.xls)Keynote (.key.zip)Numbers (.numbers.zip)Pag...
分类:编程语言   时间:2014-05-09 06:00:17    阅读次数:636
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
(转)poj2109-Power of Cryptography
Power of CryptographyDescriptionCurrent work in cryptography involves (among other things) large prime numbers and computing powers of numbers among t...
分类:其他好文   时间:2014-05-09 03:43:36    阅读次数:260
LeetCode --- Two Sum
题目链接附上代码: 1 #include 2 #include 3 #include 4 using namespace std; 5 6 class Solution { 7 public: 8 vector twoSum(vector &numbers, int target) ...
分类:其他好文   时间:2014-05-08 17:50:11    阅读次数:253
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!