Potential infinite loop detected [Smallest Common Multiple]

I’m working on a problem known as Smallest Common Multiple.
Here is my code to fix this.
But I’m getting a message on my console that,

Potential infinite loop detected on line 29. 
Tests may fail if this is not changed.

But all of my test cases passed. So, my code is not good enough?

it means that the loop is pretty near to the limit for infinite loop protection
it works, tho

if you want to try a different approach so that your algorithm would take less, you can, for now, celebrate that you managed to solve it!

2 Likes

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.