Congratulations! Iām of the firm opinion that if you can solve that algorithm you can do anything
1 Like
That algorithm works for me, I use map, filter and reduce and works superbly!
Thanks a lot for the information! +1
1 Like
Also, I have to write a function to validate when all elements in the array becomes one