HackerRank | 1 Week Preparation Kit | Find the Median problem | Day 1 | Mock Test | Python solution

Published: 04 January 2023
on channel: Engineers Revolution
1,077
5

The median of a list of numbers is essentially its middle element after sorting. The same number of
elements occur after it as before. Given a list of numbers with an odd number of elements, find the median?
Example
arr = [5,3,1,2,4]
The sorted array [1,2,3,4,5]. The middle element and the median is 3.


Watch video HackerRank | 1 Week Preparation Kit | Find the Median problem | Day 1 | Mock Test | Python solution online without registration, duration hours minute second in high quality. This video was added by user Engineers Revolution 04 January 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,077 once and liked it 5 people.