Check if smaller array elements maintain order in larger array
Filed under Hexaview
The question
Given two arrays where one is larger than the other, determine whether the elements in the smaller array appear in the same relative order in the larger array without using built-in functions.
No write-up yet. Related questions below have one.
Related Hexaview questions
Collected from public candidate posts and coding forums. Updated Nov 2026.