Reported interview periodFeb 2026–Apr 2026
Lazy Array Transformations
Implement an immutable-style array wrapper whose transformations are deferred until a terminal operation needs values.
Practice focusRequirements - map returns a new LazyArray and must not invoke the function immediately. - Chained maps apply in declaration order. - index of evaluates original elements from left to right, stopping at the first transformed value equal to target ; return that original index or -1 . - Branches sharing a prefix must not mutate or otherwise affect each other. - Avoid evaluating elements after a match is found. - Construction snapshots the finite input sequence. Later mutations of the caller's list do not change this wrapper or its branches.…