摘要:
[抄题]: Given an integer array, your task is to find all the different possible increasing subsequences of the given array, and the length of an increas 阅读全文
posted @ 2018-08-12 14:40
苗妙苗
阅读(172)
评论(0)
推荐(0)
摘要:
[抄题]: Given a matrix of M x N elements (M rows, N columns), return all elements of the matrix in diagonal order as shown in the below image. Example: 阅读全文
posted @ 2018-08-12 09:37
苗妙苗
阅读(180)
评论(0)
推荐(0)
摘要:
1. 分解问题的角度: fix 某一维度,尝试另一维度上的所有可能 a. 可能是array的(i, j)pointers, b. 可能是矩形的长与宽, c. 可能是tree的每一个subtree, d. 可能是情景题的每一对pair...2. 求所有解的, 暴力上backtracking吧3. 如果 阅读全文
posted @ 2018-08-12 09:23
苗妙苗
阅读(317)
评论(0)
推荐(0)