摘要:
https://leetcode-cn.com/problems/accounts-merge/ 这道题想了蛮久的 需要对邮箱进行字典序输出。 大致过程如下 import java.awt.image.AreaAveragingScaleFilter; import java.util.*; cla 阅读全文
摘要:
import java.util.Comparator; import java.util.HashMap; import java.util.PriorityQueue; class Solution { public String reorganizeString(String S) { if 阅读全文
摘要:
class Solution { int[] pre; public int findCircleNum(int[][] isConnected) { int n = isConnected.length; pre = new int[n]; for (int i = 0; i < n; i++) 阅读全文