CitadelMachine Learning Engineer · Take-home ProjectCodemia practiceValidate matrix valid BST
Given a binary tree represented as a matrix, write a function to determine if 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 value indicating whether the matrix represents a valid BST.