![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
RayScottor
这个作者很懒,什么都没留下…
展开
-
二叉树的查找,插入,删除,遍历,最小值,最大值 操作
package com.tree.test; class Node{ public int data; Node left_child; Node right_child; public Node( int data){ this. data = data; } public void di原创 2014-08-16 12:01:46 · 463 阅读 · 0 评论 -
连个队列实现一个栈
import java.util.Queue; import java.util.concurrent.LinkedBlockingQueue; /** * * 两个队列实现一个栈 * 思路一:q1是专职进出栈的,q2只是个中转站 * 入栈时:直接入队列q1即可 * 出栈时:把q1的除最后一个元素外全部转移到队q2中,然后把刚才剩下q1中的那个元素出队列。之后把q2中的全部元素转原创 2014-09-17 11:44:31 · 332 阅读 · 0 评论