Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
bitwise ceilling length halving solution in Speedy category for Split List by PythonWithPI
def split_list(items: list) -> list:
half = len(items)
half = (half >> 1) + (half & 1)
return items[:half], items[half:]
Jan. 23, 2020