Grokking Data Structures & Algorithms for Coding Interviews
Ask Author
Back to course home

0% completed

Vote For New Content
raol buqi
"Improving hasNext()

raol buqi

Sep 3, 2024

I think hasNext() in this case shouldn't just return true if there is an iterator in the queue, but it should also check if the iterator inside the queue hasNext()

0

0

Comments
Comments

On this page