摘要:
package leetcode; public class offer_36 { //全局变量保存头结点和上一个结点 Node preNode,head; public Node treeToDoublyList(Node root) { if(root==null) { return null; 阅读全文
posted @ 2022-03-16 19:31
一仟零一夜丶
阅读(12)
评论(0)
推荐(0)
摘要:
package leetcode; import java.util.ArrayList; public class offer_54 { public int kthLargest(TreeNode root, int k) { //二叉搜索树的中序遍历是有序的 ArrayList<Integer 阅读全文
posted @ 2022-03-16 11:29
一仟零一夜丶
阅读(23)
评论(0)
推荐(0)
摘要:
package leetcode; import java.util.ArrayList; import java.util.List; public class offer_34 { public List<List<Integer>> pathSum(TreeNode root, int tar 阅读全文
posted @ 2022-03-16 10:56
一仟零一夜丶
阅读(23)
评论(0)
推荐(0)
浙公网安备 33010602011771号