Frage im Vorstellungsgespräch bei 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.

Antwort im Vorstellungsgespräch

Anonym

1. Dez. 2022

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