Implement LazyArray with Deferred Function Execution

Problem overview from a real Databricks interview:

Design a LazyArray class that supports functional transformations (like map) but defers execution until a terminal operation (like indexOf) is called.

Check more interview questions and experiences about Databricks

Please log in to view interview details