|  | 
|  | 
| back to board | linkedlist gives wa21, arraylist takes 0.2s for AC Posted by esbybb  5 Jun 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
 | 
 | 
|