CrowdStrike Interview Question

How to implement an Iterator of several sorted iterators?

Interview Answer

Anonymous

Mar 8, 2023

I provided some different solutions for this which included: 1. Merging the sorted arrays on instance creation to some kind of Heap structure. 2. Going through the next sorted value during `.next()` I feel both are okay solutions that will address better different needs.