08 2020 档案
摘要:leetcode #14. 最长公共前缀 class Solution { public String longestCommonPrefix(String[] strs) { int length = strs.length; if(length == 0){ return ""; } // 记录
阅读全文
摘要:leetcode #7. 整数反转 class Solution { public int reverse(int x) { boolean isNegative = false; if(x < 0){ isNegative = true; } int ans = 0; while(x != 0){
阅读全文