In the interview situation, is it assumed that hasNext() is always called before next()?


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.