Migratory Birds

  • + 0 comments
    emp_arr = [0]*(max(arr)+1)
    for i in arr:
        emp_arr[i] = emp_arr[i] + 1
    for i in range(len(emp_arr)):
        if emp_arr[i] == max(emp_arr):
            return i