
二叉搜索树
逃课去学习:)
读万卷书,行万里路。
展开
-
PAT(二叉搜索树)——1043. Is It a Binary Search Tree (25)
A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree of a node contains only nodes with keys less than the node’s key.The right subt...原创 2019-02-04 11:14:33 · 146 阅读 · 0 评论 -
PAT(二叉搜索树)——1064. Complete Binary Search Tree (30)
A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree of a node contains only nodes with keys less than the node’s key.The right subt...原创 2019-02-04 11:57:45 · 143 阅读 · 0 评论 -
PAT(二叉搜索树)——1099. Build A Binary Search Tree (30)
A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree of a node contains only nodes with keys less than the node’s key.The right subt...原创 2019-02-04 13:02:24 · 243 阅读 · 0 评论