/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; *...
分类:
其他好文 时间:
2014-06-25 21:00:45
阅读次数:
200
【题目】
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 at most two transactions.
Note:
You may not engage in multiple transactions at the same time (i...
分类:
其他好文 时间:
2014-06-24 23:28:43
阅读次数:
223
【题目】
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 one and sell one share of the stock multiple times). H...
分类:
其他好文 时间:
2014-06-24 19:40:53
阅读次数:
240
1、首先,打开VS创建两个List Definition,分别是Address和City,如下图:
2、City列表里修改Title为City Name,其实内部名称还是Title,注意一下:
3、给City的列表实例,添加几个值,用来测试使用,如下:
4、在Address列表里添加几个字段,分别是CityName(LookUp类型)和HomeAddress(Sing...
分类:
其他好文 时间:
2014-06-24 15:31:14
阅读次数:
227
Problem DescriptionSome days ago, I learned the concept of LCM (least common multiple). I've played with it for several times and I want to make a big...
分类:
其他好文 时间:
2014-06-24 15:01:58
阅读次数:
168
/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(...
分类:
其他好文 时间:
2014-06-24 13:40:33
阅读次数:
214
/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(...
分类:
其他好文 时间:
2014-06-24 13:32:40
阅读次数:
157
3.3 概述
Table 3.1. The bean definition
Property
Explained in...
class
Section 3.3.2, “Instantiating beans”
name
Section 3.3.1, “Naming beans”
scope...
分类:
编程语言 时间:
2014-06-22 07:48:05
阅读次数:
276
As we all know,a thread is a separate process on your computer.you can run multiple threads all at the same time.
multi-threaded code has the disadvantage of becoming quite complex very quickly,altho...
分类:
其他好文 时间:
2014-06-22 07:25:06
阅读次数:
244
Server management the Erlang node and the Erlang application Starting nodes multiple Erlang applications can run inside the same node an application o...
分类:
其他好文 时间:
2014-06-21 16:36:43
阅读次数:
387