摘要:
Note: For square, the minimum size of topleft and top and left decides the square of the result. 阅读全文
摘要:
class Solution { public boolean validPalindrome(String s) { int start = 0, end = s.length() - 1; boolean found = false; while (start < end) { if (s.charAt(star... 阅读全文
摘要:
class Solution { class Task { public char task; public int numTasks; } public int leastInterval(char[] tasks, int n) { if (tasks.length == 0) { return ... 阅读全文