You are viewing a single comment's thread. Return to all comments →
Simple logic long sum=0; for(int i=0;imax) { max=sum-arr.get(i); } if(sum-arr.get(i)
System.out.print(min+" "); System.out.print(max); }
Seems like cookies are disabled on this browser, please enable them to open this website
Mini-Max Sum
You are viewing a single comment's thread. Return to all comments →
Simple logic long sum=0; for(int i=0;imax) { max=sum-arr.get(i); } if(sum-arr.get(i)
System.out.print(min+" "); System.out.print(max); }