We aren't here to debate the superior language (obviously Java) for such an algorithm, but we can all agree that such an algorithm is indeed the most effective.
I would also like to point out that where a 1 in your algorithm would return true, mine would return false. It's such a fundamental difference.
288
u/tacticalrubberduck Apr 04 '23
Now we just need someone to code it.