HomePremium · ₹999
07.

Flatten a nested array

Easy

A classic whiteboard problem. Example Input: [1, [2, 3, [4, 5], 6]] — Expected Output: [1, 2, 3, 4, 5, 6]

Top 20 JavaScript Interview Questions for FAANG & Product Companies | Mentoxis Resources | Mentoxis