Exploring the Infinite Rolling Median
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...
blog.tharinduhasthika.com10 min read