5 ms·
It’s not that deep. Same algorithm as for palindromes, but with different logical conditions on “equality” / continuation
by diceduckmonk 4y ago
It’s not that deep. Same algorithm as for palindromes, but with different logical conditions on “equality” / continuation