超级初学者简单的红宝石问题。我正在尝试通过编写问题来学习一些ruby。所以我有个测试 @solution = 123456 # Not the answer so as notto be a spoiler assert_equal(@solution, ProjectEuler1.new.solve)end在类作用域中分配它的<
我不明白为什么我的输出没有回文。我怀疑它的问题出在内部的for循环中,但如果有任何意见,我会很感激。The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99.*
public static boolean isPalindrome(String palindromeCandidate)