DescriptionBusinesses like to have memorable telephone numbers. One way to make a telephone number memorable is to have it spell a memorable word or p...
分类:
其他好文 时间:
2014-08-22 00:19:05
阅读次数:
195
它是一个特殊的数值。它用于表示一个本来要返回数值的操作数未返回数值的情况。在ECMAScript中,任何数值除以0会返回NaN,而不会导致错误,不会停止代码的执行,因此不会影响其他代码的执行。NaN本身两个不同寻常的特点:1.任何涉及NaN的操作都会返回NaN,这个特点在多步计算中有可能导致问题。2...
分类:
其他好文 时间:
2014-08-22 00:12:55
阅读次数:
304
特性一:函数可以穿出不固定的同一种类型的参数(参数的个数不固定)example:“func sumOf(numbers: Int...) -> Int { var sum = 0 for number in numbers { sum += number } r...
分类:
编程语言 时间:
2014-08-22 00:06:35
阅读次数:
301
这个网上一搜一大堆,就是先求一个,其余的for一遍搞出来。#include#include#define max 5555int sum[max * 4];int min(int a, int b){ if (a>b) return b; else return a;}void fu...
分类:
其他好文 时间:
2014-08-22 00:04:25
阅读次数:
264
leetcode的题目Given two wordsword1andword2, find the minimum number of steps required to convertword1toword2. (each operation is counted as 1 step.)You h...
分类:
其他好文 时间:
2014-08-21 22:29:54
阅读次数:
279
Kaka's Matrix Travels
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 7802
Accepted: 3138
Description
On an N × N chessboard with a non-negative number in ...
分类:
其他好文 时间:
2014-08-21 21:15:18
阅读次数:
300
原题:
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...
分类:
其他好文 时间:
2014-08-21 19:30:24
阅读次数:
225
Drawable以下这个是测试加载1000个Drawable对象的代码:public class Main extends Activity{ int number = 1000; Drawable[] array; @Override public void onCrea...
分类:
其他好文 时间:
2014-08-21 19:14:14
阅读次数:
187
/*Prime Cuts
Description
A prime number is a counting number (1, 2, 3, ...) that is evenly divisible only by 1 and itself. In this problem you are to write a program that will cut some number of pri...
分类:
其他好文 时间:
2014-08-21 17:14:24
阅读次数:
283
1.创建表CREATE TABLE emp_test (ID NUMBER(5,2) PRIMARY KEY, NAME VARCHAR2(20) UNIQUE, BIRTHDAY DATE);--修改表名ALTER TABLE emp_test RENAME TO TEST1;--修改表列名Alt...
分类:
数据库 时间:
2014-08-21 16:30:24
阅读次数:
336