Pregunta de entrevista de Razorpay

Q: Implement array.flat() Q: Return only string in a flattened array without using an additional loop after flattening it. Basically, do the string check logic while flattening the array itself.

Respuesta de la entrevista

Anónimo

1 de dic de 2022

I used recursion for this. As for the second question, could not solve this, so got stuck here.