摘要: https://leetcode.com/problems/perfect-rectangle/ // https://discuss.leetcode.com/topic/55944/o-n-log-n-sweep-line-solution public class Solution { public class Column implements Comparabl... 阅读全文
posted @ 2016-08-30 19:49 blcblc 阅读(191) 评论(0) 推荐(0)
摘要: https://leetcode.com/problems/find-the-difference/ public class Solution { public char findTheDifference(String s, String t) { char[] sch = s.toCharArray(); char[] tch = t.toChar... 阅读全文
posted @ 2016-08-30 17:13 blcblc 阅读(183) 评论(0) 推荐(0)
摘要: https://leetcode.com/problems/longest-absolute-file-path/ public class Solution { public int lengthLongestPath(String input) { Stack stk = new Stack(); int left = 0; int ... 阅读全文
posted @ 2016-08-30 01:05 blcblc 阅读(200) 评论(0) 推荐(0)