Exploring the Infinite Rolling Median
May 29, 2023 · 10 min read · Imagine you are asked to write a function to find a median of a given list of numbers. Easy peasy right? And given that the list is unsorted you sort it inside your function. def calculate_median(nums): if len(nums) == 0: return 0 num...
Join discussion




