首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
果奶135
湖南科技大学
2020届
Java工程师
关注
私信
加入黑名单
举报TA
TA的博客
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(7)
俄罗斯方块
0
public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); in...
发表于 2019-09-02 01:05:10
二叉树中和为某一值的路径(二)
0
public class Solution { ArrayList<ArrayList<Integer>> list = new ArrayList<ArrayList<Integer>>(); ArrayList<Integer>...
发表于 2019-09-02 00:13:32
牛牛的闹钟
0
import java.util.Scanner; public class Main{ public static void main(String args[]) { Scanner in = new Scanner(System.in); int n = in.nextInt()...
发表于 2019-08-31 23:31:44
二叉搜索树的后序遍历序列
0
public class Solution { public boolean VerifySquenceOfBST(int [] sequence) { if(sequence.length<=0) { return false; } ...
发表于 2019-08-30 23:39:52
从上往下打印二叉树
0
使用一个动态数组 1.判断是root是否为空,返回空队列。 2.如果不为空先输入根节点。 3.判断ArrayList里面是否为空不为空,则弹出数组的头节点,并判断有没有左右子树 4.有左右子树则添加到ArrayList的尾部。直到ArrayList为空。 public cla...
发表于 2019-08-28 23:02:45
栈的压入、弹出序列
0
一个辅助的栈来存储入栈的。然后如果栈顶数字等于出栈元素则辅助栈出栈。并且popA的标志位往后移动一位,最后判断辅助栈是否为空来判断。 import java.util.ArrayList; import java.util.Stack; public class Solution { pub...
发表于 2019-08-28 22:13:24
包含min函数的栈
0
public class Solution { Stack<Integer> in = new Stack<>(); Stack<Integer> min = new Stack<>(); Integer tem; public voi...
发表于 2019-08-21 17:48:23
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题