Coinbase interview question help | Iterator

Anonymous User
3536
Apr 17, 2022

I went through the interview experience in the discussion section, there is a frequent question based on iterator which is something like this
Write custom Iterators:

Odd, even having infinite stream (Even takes odd as dependency)
Negative Iterator( takes a dependency iterator)
InterLeavingIterator (takes a list of iterators)
Limit Iterator (takes a limit and terminates the infinite iterator)

Could anyone share their insights/approach to solve this?

Comments (3)