← 返回 coinbase 的题目列表Iterator Challenge
类型:online_judge
Implement a class to support interleave iterator functionality. This class should provide the ability to extract elements interleaved from multiple iterators. Implementation should include a constructor, a method to add iterators, and a method to return the next element. It should also support sub-iterators with filter and range functionality.
Example
Input
[iter([1, 2, 3]), iter(['a', 'b', 'c'])]