The helper function `_uniq` has a couple problems. - `True` and `1` are not considered unique. (Same for `0` and `False`) - ~~The sorted container is not actually used in the second implementation with `islice`~~
The helper function
_uniqhas a couple problems.Trueand1are not considered unique. (Same for0andFalse)The sorted container is not actually used in the second implementation withislice