using System.Collections.Generic;
int[] nums = new int[]{0,0,1,1,1,2,2,3,3,4};
for (int i = 0; i < nums.Length; i++)
for (int j = 0; j < nums.Length; j++)
if (list.Contains(nums[i]))
Console.WriteLine(length);
static List<int> list = new List<int>();
static void Mix(List<int> list, int[] nums, int length)
for (int i = 0; i < length; i++)