3 ms·This could be solved in a language like python using generator expressions, or in C++ with iterators.by blt 8y agoThis could be solved in a language like python using generator expressions, or in C++ with iterators.