Mixpanel | Software Engineer | Coding | Phone Screen
JKjknollh·
Interview date
January 6, 2026
Company
mixpanel
Role
Software Engineer
Level
Unspecified
Region
Unspecified
Round type
Coding
Team/Org
General Hire
Stage
Phone Screen
Flatten Array of Infinite Depth: You are given an array that may contain values or other arrays nested to any depth. Write a function that returns a flat array containing all the values in the same order. Do not assume a maximum nesting depth. Input: [1, [2, [3, 4]], 5] Output: [1, 2, 3, 4, 5] Input: [[[]], [[[4, 3]]], []] Output: [4, 3] Input: [] Output: [] Input: [1, [], [2, [[], [3]]]] Output: [1, 2, 3]
Sign in to view the full interview experience
Create or use your InterviewDB account to read the full Warren post and all shared details.
Sign in to continue