MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / is_sorted.py

File is_sorted.py

data_structures/binary_tree/is_sorted.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1"""
2Given the root of a binary tree, determine if it is a valid binary search tree (BST).
3
4A valid binary search tree is defined as follows:

Callers

nothing calls this directly

Calls 1

NodeClass · 0.70

Tested by

no test coverage detected