How to solve it when list of integers is a stream of integers


  • 0
    T

    I have no idea of how to implement this given that the list of integers is a stream of integers that you can query with n.next() function call.

    Anyone knows how to solve it?


Log in to reply
 

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