You are viewing a single comment's thread. Return to all comments →
static int findMedian(int[] arr) { List<int> list = arr.ToList(); list.Sort(); return list[(int)(list.Count/2)]; }
Seems like cookies are disabled on this browser, please enable them to open this website
Find the Median
You are viewing a single comment's thread. Return to all comments →