Binary tree search not returning matching value when some nodes are null

后端 未结 0 1672
面向向阳花
面向向阳花 2021-01-27 10:29

TL;DR - How do I alter this algorithm to return the matching val given a BST with null nodes?

TreeNode:

/**
 * Definition for a binary tree node.
 * functi         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题