This is a problem from bfe.dev: https://bigfrontend.dev/problem/imple...
Doing it in recursion is pretty easy, while iteration is a little mind-twisting.
I've put my code here : https://bigfrontend.dev/problem/imple...
Hi I'm a JavaScript engineer who is not good at algorithms,
and currently practicing leetCode online. If you are interested, maybe we can learn together.
Nesta página do site você pode assistir ao vídeo on-line BFE.dev #3 implement Array.prototype.flat() | JSer - Front End Interview questions duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário JSer 27 Agosto 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 3,716 vezes e gostou 41 espectadores. Boa visualização!