题目:
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 (i...
分类:
其他好文 时间:
2014-09-21 03:10:29
阅读次数:
265
1, Insert
MongoDB is database storing document object, the type of which is called Bson.(like JSON);
Example: // document defination
Now after using command[db.posts.insert(doc)], you will...
分类:
数据库 时间:
2014-09-21 01:19:39
阅读次数:
380
BFS (Bridth First Search) can be implemented by a queue.Procedure is like this: (Q is Queue)1, Put 1 in Q : ->1 (front) 2, Read the front of Q (which ...
分类:
其他好文 时间:
2014-09-20 04:36:36
阅读次数:
237
客户提供了MySQL的环境,但是不支持中文, 通过以下命令查看了MySQL的字符集 连接上mysql服务,输入以下命令 mysql>show variables like ‘character_set%‘; 显示如下 +--------------------------+--------------...
分类:
数据库 时间:
2014-09-19 17:49:26
阅读次数:
277
Pooling: OverviewAfter obtaining features using convolution, we would next like to use them for classification. In theory, one could use all the extra...
分类:
其他好文 时间:
2014-09-19 17:22:45
阅读次数:
233
Oracle使用正则表达式4个主要函数:1、regexp_like 只能用于条件表达式,和 like 类似,但是使用的正则表达式进行匹配,语法很简单:2、regexp_substr 函数,和 substr 类似,用于拾取合符正则表达式描述的字符子串,语法如下:3、regexp_instr 函数,和 ...
分类:
数据库 时间:
2014-09-19 15:17:05
阅读次数:
244
Day by day number of Kangaroos is decreasing just like
tiger, whale or lions. So I decided to make them a sanctuary
where they will live peacefully. I do not let visitors go
near them. So I planted...
分类:
其他好文 时间:
2014-09-19 03:26:24
阅读次数:
278
Priority Queue
Definition & Description:
In computer
science/data structures, a priority queue is
an abstract data type which
is like a regular queue or stack data
str...
分类:
其他好文 时间:
2014-09-19 03:25:45
阅读次数:
301
Description
You want to hold a party. Here's a polygon-shaped cake on the table. You'd like to cut the cake into several triangle-shaped parts for the invited comers. You have a knife to cut. The t...
分类:
其他好文 时间:
2014-09-18 23:48:44
阅读次数:
314
一、登录MySQL查看用SHOW VARIABLES LIKE ‘character%’;下字符集,显示如下:+--------------------------+----------------------------+| Variable_name | Value |+------------...
分类:
数据库 时间:
2014-09-18 22:07:24
阅读次数:
247