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.
The "count" list must actually be of length max(given_list_elements)+1,as the index in python starts from '0'.The zeroth index value of count is never edited if the bird IDs start from '1'.However,that's not gonna affect the output.So it's ok : )
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 →
The "count" list must actually be of length max(given_list_elements)+1,as the index in python starts from '0'.The zeroth index value of count is never edited if the bird IDs start from '1'.However,that's not gonna affect the output.So it's ok : )