Skip to content

Bug Report for lowest-common-ancestor-in-binary-search-tree #5381

@germanamz

Description

@germanamz

Bug Report for https://neetcode.io/problems/lowest-common-ancestor-in-binary-search-tree

Please describe the bug below and include any steps to reproduce the bug or screenshots if possible.

Needs input/test case validation for BST.

Example:
Input: [5,3,8,1,4,7,9,null,2,null,10,null]
Yields:
Image

Which is not a valid BST.

Expected behavior:
Input is validated and prevents Run with invalid test cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions