Flatten infinite depth array and related DS/Algo problems
Filed under Grab
The question
Flatten an array of infinite depth in Javascript, group all anagrams from an array of strings, and find the first and last occurrence of a number in a sorted array using Binary Search.
No write-up yet. Related questions below have one.
Related Grab questions
Collected from public candidate posts and coding forums. Updated Nov 2026.