You are given an array of integers. Your task is to implement a function to find the median of the array.
nums = [1, 2, 3, 4, 5] 3.0
nums = [1, 2, 3, 4, 5, 6] 3.5
Last updated 1 year ago