We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
intmigratoryBirds(intar_size,int*ar){//use a count sortintnew[6]={0};inti,j,max=0,count=0;for(i=0;i<ar_size;i++)new[ar[i]]++;for(j=0;j<6;j++){if(new[j]>max){max=new[j];count=j;}}returncount;}
Cookie support is required to access HackerRank
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 →
C solution: