|  | 
|  | 
| вернуться в форум | linkedlist gives wa21, arraylist takes 0.2s for AC Послано esbybb  5 июн 2016 04:55sort, read from head and tail\if head+tail>maximum -> add head,tail to the answers (in front),\
 otherwise, add head to answers (to the back)\
 wow! interesting observation though
 | 
 | 
|