Posts by Henrique • 1 point
1 post
-
0
votes1
answer68
viewsQ: Largest palindrome product - Ruby
How to make this code faster? It works, but not fast enough. #!/bin/ruby def isPalin(mul) if mul.to_s == mul.to_s.reverse then return true else return false end end def lp(n) arr = [] for a1 in…