摘要:
My PriorityQueue Solution: class Solution { public int[][] merge(int[][] intervals) { PriorityQueue<int[]> queue = new PriorityQueue<>((a,b)->a[0]-b[0 阅读全文
posted @ 2022-04-07 06:33
阳光明媚的菲越
阅读(28)
评论(0)
推荐(0)
摘要:
Just use BFS to solve this problem: 1. put the s to queue 2. if s is not a valid string, then remove a '(' or ')', and then put to the queue. 3. once 阅读全文
posted @ 2022-04-07 02:42
阳光明媚的菲越
阅读(38)
评论(0)
推荐(0)
浙公网安备 33010602011771号