Nested for loops too slow – PHP Codewars Kata Integers: Recreation One
I was working on this codewars kata and got it to pass the basic tests. However, it times out for the final submission. I know this is a nested for loop and seems I am running into Big O, but can’t figure out how I can get around it. How can I make this faster?
Nested for loops too slow – PHP Codewars Kata Integers: Recreation One
I was working on this codewars kata and got it to pass the basic tests. However, it times out for the final submission. I know this is a nested for loop and seems I am running into Big O, but can’t figure out how I can get around it. How can I make this faster?