Tweak
Code
Home
Roadmap
Courses
Problems
Dashboard
Pricing
FREE
Home
Roadmap
Courses
Problems
Dashboard
Pricing
Loading editor…
Python
Java
C++
JavaScript
TypeScript
C#
Go
Kotlin
Swift
Rust
Node 22.08.0
Reset
Run tests
Loading editor…
Test cases
Run to compare output
Case 1
Input
ops = ["BSTIterator","next","next","hasNext","next","hasNext","next","hasNext","next","hasNext"], args = [[[7,3,15,null,null,9,20]],[],[],[],[],[],[],[],[],[]]
Output
—
Expected
[null,3,7,true,9,true,15,true,20,false]