whoa
dude
ur things are all wrong (i think ;) ) !!
first eg: subseqence with max sum is the entire sequence!
sceond one, the goal pair sum was 12, and ugot no pairs which sum to 11, and then max subsequence with sum of 21 is 9??
wtf? wouldn't it be 9 and 4?