#!/usr/bin/env python3
+"""Mathematical helpers."""
+
import functools
import math
+from heapq import heappop, heappush
from typing import List
-from heapq import heappush, heappop
class RunningMedian(object):
3.141
"""
- assert decimals > 0 and decimals < 10
- multiplier = 10 ** decimals
+ assert 0 < decimals < 10
+ multiplier = 10**decimals
return int(n * multiplier) / multiplier