You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The above case is a Binary Search Tree, which means every nodes in the left tree of a node must smaller than the node, and every nodes in the right tree of a node must greater than the node.
The result of createTree function shows the right sub tree of the node with value 9177 was wrong. I make the result to the following visualized image:
The text was updated successfully, but these errors were encountered:
This package is helpful for me, I use it every time when I practising leetcode problems.
I found that a wrong response with
createTree
function in the case I recieve in leetcode problem deleteNode(450)'s 84th case:The above case is a Binary Search Tree, which means every nodes in the left tree of a node must smaller than the node, and every nodes in the right tree of a node must greater than the node.
The result of
createTree
function shows the right sub tree of the node with value 9177 was wrong. I make the result to the following visualized image:The text was updated successfully, but these errors were encountered: