To calculate the difference between odd and even indexed array elements
INDENT for i in range ( len ( arr ) ) : NEW_LINE INDENT if i % 2 : NEW_LINE maxVal += maximize ( arr [ i ] ) NEW_LINE else : NEW_LINE minVal += minimize ( arr [ i ] ) NEW_LINE DEDENT caseTwo = abs ( maxVal - minVal ) NEW_LINE DEDENT