摘要: import java.util.Stack; import java.util.Iterator; public class Solution { Stack s = new Stack(); public void push(int node) { s.push(node); } public void pop() { s.pop(); } public int top() { ret... 阅读全文
posted @ 2019-04-10 16:40 紫色的雪 阅读(633) 评论(0) 推荐(0)
摘要: public ArrayList printMatrix(int [][] matrix) { int lenRows = matrix.length;//矩阵的行长 int lenColumn = matrix[0].length;//列长 ArrayList list = new ArrayList(); if(lenR... 阅读全文
posted @ 2019-04-10 09:33 紫色的雪 阅读(263) 评论(0) 推荐(0)