ArbitrageDescriptionArbitrage is the use of discrepancies in currency exchange rates to transform one unit of a currency into more than one unit of th...
分类:
其他好文 时间:
2014-07-24 17:34:26
阅读次数:
380
1.首先,我们来介绍第一种方式:◆查询的SQL语句如下:select row_number() over (order by name) as rowid, sysobjects.[name] from sysobjects◆运行的结果:rowid name1 all_columns2 all_ob...
分类:
数据库 时间:
2014-07-24 17:28:45
阅读次数:
342
WormholesDescriptionWhile exploring his many farms, Farmer John has discovered a number of amazing wormholes. A wormhole is very peculiar because it i...
分类:
其他好文 时间:
2014-07-24 17:27:45
阅读次数:
284
今天看了Javascript的基础教程,其中说了一个关于typeof的问题。typeof运算符的作用就是返回一个变量的类型,如果变量是一个数字,则返回number。 如果是字符串,则返回string, 布尔类型则返回boolean, 函数则返...
分类:
编程语言 时间:
2014-07-24 12:31:15
阅读次数:
558
基础介绍Lua是一种动态类型的语言。在语言中没有类型定义的语法,每个值都带有其自身的类型信息。在Lua中有8种基本类型,分别是:nil(空)类型boolean(布尔)类型number(数字)类型string(字符串)类型userdata(自定义类型)function(函数)类型thread(线程)类...
分类:
其他好文 时间:
2014-07-24 11:28:02
阅读次数:
246
Say you have an array for which the ith element is the price of a given stock on day i.
Design an algorithm to find the maximum profit. You may complete as many transactions as you like (ie, buy on...
分类:
编程语言 时间:
2014-07-24 10:25:36
阅读次数:
227
转载原文地址http://www.cnblogs.com/pumaboyd/archive/2008/04/20/1162376.html这周碰到了很多奇怪的问题,有些是莫名的低级错误,有些这是一直以来未发现的错误。其中这个RowNumber()这个问题就是这样。敬德兄写的底层负责自动生成T-SQL...
分类:
数据库 时间:
2014-07-24 10:14:33
阅读次数:
187
刚开始学javascript经常看到各种专业名词,在此整理一下个人的学习笔记:直接量直接量——就是程序中直接使用的数据值,如:88 //数字(String)"hello world" //字符串(Number)true //布尔值(Boobean)/[a-z][...
分类:
编程语言 时间:
2014-07-24 09:54:43
阅读次数:
264
ZigZag ConversionThe string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern i...
分类:
其他好文 时间:
2014-07-24 09:51:13
阅读次数:
244
Maximum Sum大意:给你一个n*n的矩阵,求最大的子矩阵的和是多少。思路:最开始我想的是预处理矩阵,遍历子矩阵的端点,发现复杂度是O(n^4),就不知道该怎么办了。问了一下,是压缩矩阵,转换成最大字段和的问题。压缩行或者列都是可以的。 1 int n, m, x, y, T, t; 2 in...
分类:
其他好文 时间:
2014-07-24 07:10:58
阅读次数:
211