网站首页 站内搜索

搜索结果

查询Tags标签: rangeSumBST,共有 1条记录
  • 938. Range Sum of BST

    Although this is an easy question, but it is prone to bugs, and the code can be better. Following is my first solution, didnt use the feature of BST.private int sum =0;public int rangeSumBST(TreeNode root, int low, int high) {if(root==null)return sum;…

    2022/2/8 6:12:25 人评论 次浏览
扫一扫关注最新编程教程