Python queue and combinations - 3 lines of code
My code using combinations:\n\nclass CombinationIterator:\n\n    def __init__(self, characters: str, combinationLength: int):\n        from itertools import com
My code using combinations:\n```\nclass CombinationIterator:\n\n    def __init__(self, characters: str, combinationLength: int):\n        from itertools import combinations\n        self.combs = ["".join(c) for c in combinations(characters, combinationLength)]\n\n    def next(self) -> str:\n        return self.combs.pop(0)\n\n    def hasNext(self) -> bool:\n        return bool(self.combs)\n```
['Queue', 'Combinatorics', 'Python', 'Python3']