摘要:
66 2 758 . Bold Words in String public String boldWords(String[] words, String S) { Set<Integer> set = new HashSet<>(); for (int i = 0; i < S.length() 阅读全文
摘要:
1 the advantages of spring boot simple fast and convenient quickly set up microservice 2 springboot infrastructure directory src/main/java program dev 阅读全文
摘要:
1 ThreadLocal public class TestM { public static void main(String[] args) { for (int i = 0; i < 2; i++) { new Thread() { @Override public void run() { 阅读全文
摘要:
• 矩阵上的问题(3题) Search a 2D Matrix II public int searchMatrix(int[][] matrix, int target) { // write your code here int n = matrix.length; if (n == 0) { 阅读全文
摘要:
BFS 类问题 1 Surrounded Regions public void surroundedRegions(char[][] board) { int n = board.length; if (n == 0) { return; } int m = board[0].length; fo 阅读全文
摘要:
DFS的两种理解方式:1. 按照实际执行顺序模拟 (适合枚举型DFS,下节课内容)2. 按照DFS的定义宏观理解 (适合分治型DFS,本节课内容) 1 Convert BST to Greater Tree int sum = 0; public TreeNode convertBST(TreeNo 阅读全文