Answer Index
answer = 0 NEW_LINE minabs = abs ( prefixsum [ N - 1 ] - 2 * prefixsum [ 0 ] ) NEW_LINE for i in range ( 1 , N - 1 ) : NEW_LINE INDENT ans1 = abs ( prefixsum [ N - 1 ] - 2 * prefixsum [ i ] ) NEW_LINE DEDENT