摘要: Note: For square, the minimum size of topleft and top and left decides the square of the result. 阅读全文
posted @ 2017-09-18 13:14 keepshuatishuati 阅读(88) 评论(0) 推荐(0) 编辑
摘要: class Solution { public boolean validPalindrome(String s) { int start = 0, end = s.length() - 1; boolean found = false; while (start < end) { if (s.charAt(star... 阅读全文
posted @ 2017-09-18 13:07 keepshuatishuati 阅读(90) 评论(0) 推荐(0) 编辑
摘要: class Solution { class Task { public char task; public int numTasks; } public int leastInterval(char[] tasks, int n) { if (tasks.length == 0) { return ... 阅读全文
posted @ 2017-09-18 12:44 keepshuatishuati 阅读(102) 评论(0) 推荐(0) 编辑