[Feature]: Add 255. Verify Preorder Sequence in Binary Search Tree
solution
#3921
Closed
4 tasks done
Labels
CodeHarborHub - Thanks for creating an issue!
dsa-solution
Label for solutions related to Data Structures & Algorithms.
gssoc
GirlScript Summer of Code | Contributor
GSSOC'24
GirlScript Summer of Code | Contributor
level1
GirlScript Summer of Code | Contributor's Levels
Is there an existing issue for this?
Feature Description
255. Verify Preorder Sequence in Binary Search Tree
Given an array of numbers, verify whether it is the correct preorder traversal sequence of a binary search tree.
You may assume each number in the sequence is unique.
Consider the following binary search tree:
Example 1:
Input: [5,2,6,1,3]
Output: false
Example 2:
Input: [5,2,1,3,6]
Output: true
Use Case
Benefits
No response
Add ScreenShots
No response
Priority
High
Record
The text was updated successfully, but these errors were encountered: