Back to course home
0% completed
Path With Given Sequence (medium)
Problem Statement
Given a binary tree and a number sequence, find if the sequence is present as a root-to-leaf path in the given tree.
Constraints:
1 <= arr.length <= 5000
0 <= arr[i] <= 9
- Each node's value is between
[0 - 9]
.
Try it yourself
Try solving this question here:
.....
.....
.....
Like the course? Get enrolled and start learning!
Table of Contents
Contents are not accessible
Contents are not accessible
Contents are not accessible
Contents are not accessible
Contents are not accessible