Andersen Lab Interview Question

Algorithms and data structures. Many questions regarding data queries optimisations