摘要:
import java.util.Stack; //二叉树的各种遍历 递归及非递归 public class BinaryTreeTraversal { public static void main(String[] args) { BinaryTreeNode node1 = new Binar 阅读全文
posted @ 2021-10-18 21:28
code-G
阅读(51)
评论(0)
推荐(0)
摘要:
/** * 如果两个链表相交,求相交的节点 */ public class TwoLinkedList { public static void main(String[] args) { Node node1 = new Node(1); Node node2 = new Node(2); Nod 阅读全文
posted @ 2021-10-18 20:15
code-G
阅读(70)
评论(0)
推荐(0)
摘要:
import java.util.HashSet; /** * 判断一个链表是否有环,并找到入环的第一个节点 */ public class CircularLinkedList { public static void main(String[] args) { Node node1 = new 阅读全文
posted @ 2021-10-18 20:14
code-G
阅读(85)
评论(0)
推荐(0)

浙公网安备 33010602011771号