push odd elements in ' odd ' and even elements in ' even '
for ( let i = 0 ; i < n ; i ++ ) { if ( arr [ i ] % 2 == 0 ) even . push ( arr [ i ] ) ; else odd . push ( arr [ i ] ) ; } let size_odd = odd . length ; let size_even = even . length ;