#42 - Median of the array
You are given an array of integers. Your task is to implement a function to find the median of the array.
Example 1
nums = [1, 2, 3, 4, 5]
3.0
Example 2
nums = [1, 2, 3, 4, 5, 6]
3.5
Last updated
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