You are viewing a single comment's thread. Return to all comments →
you can make it more eficient by removing the statements:
for(int i = 0; i < N; i++) { if(B[i] % 2 != 0){ count+=1 } return count*2
Fair Rations
You are viewing a single comment's thread. Return to all comments →
you can make it more eficient by removing the statements:
for(int i = 0; i < N; i++) { if(B[i] % 2 != 0){ count+=1 } return count*2