像这种DFS的题目,常见的写法无外乎两种,使用recursion,
或者用Stack。本文采用了stack的方式。做完后积累的经验有:像这种在一个ArrayList里面罗列可能的path的题目,recursion的参数一般包括:包含最终结果的集合(ArrayList),input(String),递...
分类:
其他好文 时间:
2014-06-13 08:34:10
阅读次数:
220
select mtrh.request_number 发货单号,
mmt.transaction_date 发货时间, oola.creation_date 下单时间, nvl(fu.description,
fu.user_name) 下单人员, ott.name 订单类型, qp.name 价目...
分类:
数据库 时间:
2014-06-13 00:53:06
阅读次数:
1243
Question:Say you have an array for which
theithelement is the price of a given stock on dayi.Design an algorithm to find
the maximum profit. You may c...
分类:
其他好文 时间:
2014-06-12 19:55:05
阅读次数:
292
Given a binary tree, find its maximum depth.The
maximum depth is the number of nodes along the longest path from the root node
down to the farthest le...
分类:
其他好文 时间:
2014-06-12 18:32:00
阅读次数:
222
一、摘要 An Adapter object acts as a bridge between
anAdapterViewand the underlying data for that view. The Adapter provides access
to the data items. Th....
分类:
移动开发 时间:
2014-06-12 18:27:55
阅读次数:
503
一、变量的类型 JavaScript 有六种数据类型。主要的类型有
Number、String、object 以及 Boolean 类型,其他两种类型为 null 和 undefined。var obj =
{x:[1,2],y:23};//Object类型 i=100;//Number类型 i="...
分类:
Web程序 时间:
2014-06-12 18:00:51
阅读次数:
267