slice in 99problems: avoid constructing a list to be discarded