897. 递增顺序搜索树
题目
897. 递增顺序搜索树
思路
先中序遍历拿到数值,然后通过数值创建链表
代码
/**
* Definition for a binary tree node.
* function TreeNode(val, left, right) {
* this.val = (val===undefined ? 0 : val)
* this.left = (left===undefined ? null : left)
* this.right = (right===und
原创
2021-08-10 00:36:44 ·
39 阅读 ·
0 评论