ServiceNow Interview Question

Write a function to flatten an array to one level in JavaScript. (LeetCode #2625)

Interview Answer

Anonymous

Apr 21, 2024

This can be done in linear time with a recursive function.