You are viewing a single comment's thread. Return to all comments →
It's good, but why are you storing the integer read? Hacker rank allows you to change the boiler plate code that they wrote, and you can do
for (int i=0; i<n; i++) { sum ^= in.nextInt(); }.
Seems like cookies are disabled on this browser, please enable them to open this website
Lonely Integer
You are viewing a single comment's thread. Return to all comments →
It's good, but why are you storing the integer read? Hacker rank allows you to change the boiler plate code that they wrote, and you can do