摘要: F函数的作用是把最后一层的删去,并返回,上面的东西盖下来。 public class ReverseStack { //目的是把栈中的最底层,删除并返回 public static int f(Stack<Integer> stack){ int result = stack.pop(); if ( 阅读全文
posted @ 2022-06-24 11:54 Chenyi_li 阅读(53) 评论(0) 推荐(0)