Search⌘ K
AI Features

Challenge: Is It a BST?

Explore how to identify whether a given binary tree qualifies as a binary search tree. This lesson guides you through the problem, input-output expectations, and includes a coding exercise to apply BST in-order traversal for validation in Go.

Problem

Find out if a given binary tree is a BST.

Input

A BST.

Output

Return true if ...