摘要:
这个题目本质上是一个graph 的BFS 题目,虽然光度题目很难看出来。 数组里是的value 表示走几步,负数表示往回走. “If a number k at an index is positive, then move forward k steps. Conversely, if it's 阅读全文
摘要:
1D-->1D List: new ArrayList<>(1D_list) 1D List添加 2D List List<List<Integer>> result; result.add(new ArrayList<>(curResult)) set to list; new ArrayList 阅读全文