← Intuit questions
CodingReported in a candidate post, Aug 2020

Design data structure for O(1) index search and O(n) traversal

Filed under Intuit

Design a data structure for elements of an array that supports finding the index of any element in O(1) time and traversing/printing elements in their original input order in O(n) time. Handle…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Intuit questions

Collected from public candidate posts and coding forums. Updated Nov 2026.