Question d’entretien chez 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.

Réponse à la question d'entretien

Utilisateur anonyme

1 déc. 2022

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

Question entretien chez 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. | Glassdoor