• + 0 comments

    C# solution

    public static int migratoryBirds(List<int> arr)
        {
            int[] newArr = new int[arr.Count];
            arr.ForEach(bird => newArr[bird]++);
            
            return Array.IndexOf(newArr, newArr.Max());
        }