You are viewing a single comment's thread. Return to all comments →
Your code is very simple to follow. If you dont mind let me suggest a simple change for your first loop:
int[] birdsCounter = new int[ 5 ]; for( int bird : ar ) birdsCounter[ bird - 1 ]++;
Seems like cookies are disabled on this browser, please enable them to open this website
Migratory Birds
You are viewing a single comment's thread. Return to all comments →
Your code is very simple to follow. If you dont mind let me suggest a simple change for your first loop: