https://leetcode.com/problems/find-the-difference/public class Solution { public char findTheDifference(String s, String t) { char[] sch = s.toCharArray(); char[] tch = t.toCharArray(); Arrays.sort(sch); Arrays.sort(tch); for (int i=0; i
本文共 329 字,大约阅读时间需要 1 分钟。
https://leetcode.com/problems/find-the-difference/public class Solution { public char findTheDifference(String s, String t) { char[] sch = s.toCharArray(); char[] tch = t.toCharArray(); Arrays.sort(sch); Arrays.sort(tch); for (int i=0; i
转载于:https://www.cnblogs.com/charlesblc/p/5822791.html