Coinbase interview question help | Iterator

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2022-04-17Added By Anonymous
Source: Link

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:


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

Could anyone share their insights/approach to solve this?

Comments