Given a infinite number of quarters(25cents), dimens(10cents), nickels(5cents) and pennies(1cent), write code to calculate the number of ways of repre...
分类:
其他好文 时间:
2014-08-21 12:56:04
阅读次数:
260
一、练习的表结构emp empno ename job mgr hiredate sal comm deptnodept deptno dname locsalgrade grade losal hisal二、创建表CREATE TABLE EMP (EMPNO NUMBER(4) NOT NU.....
分类:
数据库 时间:
2014-08-21 11:18:04
阅读次数:
247
Question:Given a sorted array of n integers that has been rotated an unknown number of times, write code to find anelement in the array. You may assum...
分类:
其他好文 时间:
2014-08-21 02:46:43
阅读次数:
194
Linux命令(3)cat
Cat是查看文件内容 命令格式:cat file
常用参数说明:
-n或—nimber由1开始对所有输出的行数编号。
例子:
Cat /etc/passwd -b或—number-nonblank和-n相似,只不过对于空白行不编号。
例子:
Cat /etc/passwd...
分类:
系统相关 时间:
2014-08-21 01:35:23
阅读次数:
242
一、cat主要有三大功能:1.一次显示整个文件。$catfilename2.从键盘创建一个文件。$cat>filename(只能创建新文件,不能编辑已有文件)3.将几个文件合并为一个文件:$catfile1file2>file参数:-n或--number由1开始对所有输出的行数编号-b或--number-nonblank和-n相似,只..
分类:
系统相关 时间:
2014-08-21 00:22:03
阅读次数:
281
题目链接:uva 11651 - Krypton
Number System
题目大意:给定进制base,和分数score,求在base进制下,有多少个数的值为score,要求不能有连续相同的数字以及前导0.计算一个数的值即为相邻两位数的平方差和。
解题思路:因为score很大,所以直接dp肯定超时,但是即使对于base=6的情况,每次新添一个数score最大增加25(0-5),所...
分类:
其他好文 时间:
2014-08-21 00:17:43
阅读次数:
284
我们经常听到有人困惑于图像的像素值储存的是什么信息,以及如何获取所需的值。这里我们总结以下几个概念。数字量化值(DigitalNumber:DN)像素值的通用术语是数字量化值或DN值,它通常被用来描述还没有校准到具有意义单位的像素值。如果你只是想看一个图像,和不打算解释像素值的物理意义,那么就可以以...
分类:
其他好文 时间:
2014-08-20 22:28:42
阅读次数:
310
declare @time datetimedeclare @ms intset @time= getdate()select ID,name from (select row_number() over(order by ID) as rowNum,* from dbo.testb) as t ....
分类:
数据库 时间:
2014-08-20 21:00:33
阅读次数:
191
基础介绍Lua是一种动态类型的语言。在语言中没有类型定义的语法,每个值都带有其自身的类型信息。在Lua中有8种基本类型,分别是:nil(空)类型boolean(布尔)类型number(数字)类型string(字符串)类型userdata(自定义类型)function(函数)类型thread(线程)类...
分类:
其他好文 时间:
2014-08-20 20:58:12
阅读次数:
303
Problem 28
Starting with the number 1 and moving to the right in a clockwise direction a 5 by 5 spiral is formed as follows:
21 22 23 24 25
20 7 8 9 10
19 6 1 2 11
18 5 4 3 12
17 16...
分类:
其他好文 时间:
2014-08-20 18:04:12
阅读次数:
237