1 - compare 4 with 4
" t; U7 ^+ C, S0 z5 `' w; Kif (4v4)= same that means the rest of 4 is got more weight3 @( ]* c, j8 g
then goto 2 - compare rest of(4) - 2 with 2
( I) B' y/ K* l1 l. C, f4 }公仔箱論壇 if (left side is more weight)& s& F# o2 p1 D L1 B" b: s
then goto 3 - compare last (left side of ( 2) - 1 with 1 => get answer
# x2 q/ x% C: E/ Y* Z2 ?7 I+ _tvb now,tvbnow,bttvb else ( right side is more weight)公仔箱論壇, p. ]0 p( ]4 z' o4 s4 r
then goto 3 - compare last (right side of (2) - 1 with 1 => get answertvb now,tvbnow,bttvb( E" S- q% v: ]$ c9 k
else ( the left 4) then compare with above , or right 4 also can compare above method... |