LeetCode-迴文數-9、125

  目錄 009. 迴文數 125. 驗證迴文串 009. 迴文數 【題目】: 【代碼】: 方法1: 方法2: 方法3: 125. 驗證迴文串 【題目】: 【代碼】: class Solution { public boolean isPalindrome(String s) { int len = s.length(); int i = 0, j = len - 1;
相關文章
相關標籤/搜索