NotionSoftware Engineer · Take-home ProjectCodemia practiceValidate grid valid BST
Given a binary tree represented as a grid, implement a function to validate whether it is a valid binary search tree (BST). A valid BST must satisfy the property that for any given node, all values in its left subtree are less than the node's value, and all values in its right subtree are greater. The function should return a boolean indicating whether the grid represents a valid BST.
Medium
Coding & Algorithms