OpenGov Interview Question

1. Recursive and non recursive way to flatten a nested array. 2. Write program to deep copy an array containing strings, numbers, arrays, and object. 3. Write program to find common elements between 3 arrays. Modify the function such that space complexity is reduced.

Interview Answer

Anonymous

Oct 7, 2016

Implementation process: 1. Thought through the problem 2. Explained proposed solution to the interviewer 3. Modified the solution as requested