ignore element if greater than k
if arr [ i ] > k : NEW_LINE INDENT continue NEW_LINE DEDENT if i <= n // 2 : NEW_LINE INDENT vect1 . append ( arr [ i ] ) NEW_LINE DEDENT else : NEW_LINE INDENT vect2 . append ( arr [ i ] ) NEW_LINE DEDENT