Implement a function that flattens a nested array.

Instruction: Write a function that flattens a nested array to a single level.

Context: This question assesses the candidate's ability to work with arrays and their understanding of recursion.

Updated

Official answer available

Read the opening below, then unlock the full answer and practical guidance.

Flattening recursively visits nested arrays in left-to-right order and emits non-array values...

Related Questions