You are viewing a single comment's thread. Return to all comments →
would it improve the performance if we replace the last part with
Iterator<Integer> iter = list.iterator(); while(list.size() > k) { totalLuck -= 2*iter.next(); k++; } return totalLuck;
?
Seems like cookies are disabled on this browser, please enable them to open this website
Luck Balance
You are viewing a single comment's thread. Return to all comments →
would it improve the performance if we replace the last part with
?