We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I've tried the solution on my machine and I really don't get how the input stream is halted to indicate the end of the list's input. Yet the code works when I run it on hackerrank. Please explain to me how the Solution.main() method halts further input. Thank you.
List Replication
You are viewing a single comment's thread. Return to all comments →
Hey @adrielradicchi, @andrea_ftes
I've tried the solution on my machine and I really don't get how the input stream is halted to indicate the end of the list's input. Yet the code works when I run it on
hackerrank
. Please explain to me how theSolution.main()
method halts further input. Thank you.