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.
defmigratoryBirds(arr):# Write your code heresights={1:0,2:0,3:0,4:0,5:0}forbird_typeinarr:sights[bird_type]+=1sorted_by_sights=sorted(sights.items(),key=lambdaitem:item[1],reverse=True)returnsorted_by_sights[0][0]
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 →