上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 35 下一页
摘要: 日语文字转音频 https://ondoku3.com/ja/ 阅读全文
posted @ 2023-10-31 15:33 爱新觉罗LQ 阅读(86) 评论(0) 推荐(0)
摘要: 给视频添加字幕 加字幕 Arctime https://arctime.org/ 调轴工具,修改文本 https://subplayer.js.org/ 阅读全文
posted @ 2023-10-31 11:03 爱新觉罗LQ 阅读(39) 评论(0) 推荐(0)
摘要: 整型数组按照字典序排序 输入 ... 0,1,2,3,5,7,8,1001,10 9 ... 输出 ... 0,1,10,1001,2,3,5,7,8 Collections.sort(list, new Comparator<Integer>() { @Override public int co 阅读全文
posted @ 2023-10-30 10:02 爱新觉罗LQ 阅读(16) 评论(0) 推荐(0)
摘要: 二维数组根据其下标,判断它是第几个元素 3 3 0 2 2 1 2 1 2 2 1 public class qqqq { static int row; static int col; public static void main(String[] args) { Scanner in = ne 阅读全文
posted @ 2023-10-27 16:44 爱新觉罗LQ 阅读(50) 评论(0) 推荐(0)
摘要: 判断周围8个方向的位置 static int[][] offsets = {{0, 1}, {1, 1}, {1, 0}, {1, -1}, {0, -1}, {-1, -1}, {-1, 0}, {-1, 1}}; for (int i = 0; i < row; i++) { for (int 阅读全文
posted @ 2023-10-26 23:04 爱新觉罗LQ 阅读(20) 评论(0) 推荐(0)
摘要: 常用在线画图工具 https://www.geogebra.org/graphing https://www.cnblogs.com/henry-1202/p/10258867.html 阅读全文
posted @ 2023-10-26 10:22 爱新觉罗LQ 阅读(34) 评论(0) 推荐(0)
摘要: 从二维数组中截取连续行 int[][] temp = Arrays.copyOfRange(arr, 1, 2); // 截取第二行 阅读全文
posted @ 2023-10-25 23:55 爱新觉罗LQ 阅读(17) 评论(0) 推荐(0)
摘要: 组合公式 从m 个箱子中选出 n 个箱子 公式:\(C_{m}^{n}=\frac{m!}{n!(m-n)!)}\) 每种方式两两相邻球之间都有一个磁力,假设: 放置方式1的两两相邻球之间的磁力的最小值为a 放置方式2的两两相邻球之间的磁力的最小值为b ... 放置方式X的两两相邻球之间的磁力的最小 阅读全文
posted @ 2023-10-25 12:41 爱新觉罗LQ 阅读(48) 评论(0) 推荐(0)
摘要: KMP算法 1. 算法核心 利用匹配失败后的信息 尽量减少模式串(B)与主串(A)的匹配次数 以达到快速匹配的目的 通过一个 next 数组,保存模式串(B)中 前后最长公共子序列的长度,每次回溯时,通过 next 数组找到,前面匹配过的位置,省去了大量的计算时间 2. 如何减少匹配次数 2.1. 阅读全文
posted @ 2023-10-24 20:21 爱新觉罗LQ 阅读(17) 评论(0) 推荐(0)
摘要: 已知BST的前序遍历,还原BST arr数组:前序遍历 list:排序后的 arr 数组【BST的 中序遍历】 public static TreeNode getRoot(int[] arr, List<Integer> list){ int index = -1; for (int i = 0; 阅读全文
posted @ 2023-10-23 11:00 爱新觉罗LQ 阅读(20) 评论(0) 推荐(0)
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 35 下一页