摘要:
1 public class Solution { 2 public String alienOrder(String[] words) { 3 if (words.length == 0) { 4 return ""; 5 } 6 StringBuilder result = new StringBui... 阅读全文
posted @ 2016-08-07 13:44
keepshuatishuati
阅读(156)
评论(0)
推荐(0)
摘要:
1 public class Solution { 2 public int kthSmallest(int[][] matrix, int k) { 3 if (matrix.length == 0 || matrix[0].length == 0 || k queue = new PriorityQueue(); 7 for (int i =... 阅读全文
posted @ 2016-08-07 08:50
keepshuatishuati
阅读(183)
评论(0)
推荐(0)
摘要:
1 public class PhoneDirectory { 2 private boolean[] nums; 3 private Queue queue; 4 /** Initialize your data structure here 5 @param maxNumbers - The maximum numbers that can ... 阅读全文
posted @ 2016-08-07 08:42
keepshuatishuati
阅读(132)
评论(0)
推荐(0)
浙公网安备 33010602011771号