Turn [1, [2, [3, [4]], 5]] into [1, 2, 3, 4, 5] without flat(), reduce or other helpers — just loops.
Turn [1, [2, [3, [4]], 5]] into [1, 2, 3, 4, 5] without flat(), reduce or other helpers — just loops.
Unlock the full question, the code runner with test cases, and reference solution
One-time unlock. Yours forever.
Or get a for every question, unlimited code runs and AI mock interviews.
Opens with the full question.