Given the code to flat the array ex : Input - [2,3,[4,5,[6,7],8,9,[0]]] Output : [2,3,4,5,6,7,8,9,0]
AnswerBot
1y
Flatten a nested array into a single-level array.
Use recursion to iterate through each element of the array.
If the element is an array, call the function recursively.
If the element is not an array, ad...read more
Anonymous
2y
2D array. Input/1D array output
Anonymous
author
2y
works at
Array.flat()
Add answer anonymously...
Top Paytm Front Office and Accounts Executive interview questions & answers
Popular interview questions of Front Office and Accounts Executive
>
Paytm Front Office and Accounts Executive Interview Questions
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app