上一页 1 2 3 4 5 6 ··· 33 下一页
public void DFS(TreeNode root) {深度优先 Stack<TreeNode> stack = new Stack<>(); stack.add(root); while (!stack.isEmpty()) { // 移除最后一个 TreeNode tempNode = Read More
posted @ 2020-12-22 14:37 soft.push("zzq") Views(328) Comments(0) Diggs(0) Edit
public static void main(String[] args) { int[] m = {2, 4, 6, 9, 12, 13, 15, 16}; int[] n = {3, 5, 9, 12, 15}; Search(m, n); } private static void Sear Read More
posted @ 2020-12-15 15:36 soft.push("zzq") Views(590) Comments(0) Diggs(0) Edit
public Map<String, List<String>> getWordList(List<String> list) { Map<String, List<String>> ret = new HashMap<>(); for (int i = 0; i < list.size(); i+ Read More
posted @ 2020-12-14 11:51 soft.push("zzq") Views(68) Comments(0) Diggs(0) Edit
public static void main(String[] args) { Node n6 = new Node(6); Node n5 = new Node(5); n5.next = n6; Node n4 = new Node(4); n4.next = n5; Node n3 = ne Read More
posted @ 2020-12-13 14:02 soft.push("zzq") Views(91) Comments(0) Diggs(0) Edit
public static boolean sum2(int ary[], int sum) { int start = 0; int end = ary.length - 1; for (; start < end; ) { if (ary[start] + ary[end] == sum) { Read More
posted @ 2020-12-11 18:42 soft.push("zzq") Views(106) Comments(0) Diggs(0) Edit
案例数据 id(主键)c(普通索引)d(无索引) 5 5 5 10 10 10 15 15 15 20 20 20 25 25 25 案例一:间隙锁简单案例 步骤事务A事务B 1 begin;select * from t where id = 11 for update; - 2 - insert Read More
posted @ 2020-12-09 13:47 soft.push("zzq") Views(221) Comments(0) Diggs(0) Edit
public static void main(String[] args) { int ret = commpareStr("abc", "12345cab"); System.out.println(ret); } //orgStr源字段 public static int commpareSt Read More
posted @ 2020-12-08 12:02 soft.push("zzq") Views(170) Comments(0) Diggs(0) Edit
mysql事务:https://blog.csdn.net/qq_40884473/article/details/105213408 配置: 1 开启慢查询日志 2 开启收集未走索引日志 qt-query-digest 工具: 1 获取耗时长的sql 2 获取IO消耗高的sql 3 未走索引sql Read More
posted @ 2020-12-03 21:19 soft.push("zzq") Views(76) Comments(0) Diggs(0) Edit
D:\protobuf\1203\protoc.exe ad_tools.proto --java_out=D:\protobuf\1203 --proto_path=D:\protobuf\1203 需要注意 proto.exe 可执行文件的版本需要和java中引入的protobuf的jar包 版 Read More
posted @ 2020-12-03 13:59 soft.push("zzq") Views(416) Comments(0) Diggs(0) Edit
package test; import org.apache.commons.lang3.StringUtils; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.ut Read More
posted @ 2020-12-01 21:46 soft.push("zzq") Views(149) Comments(0) Diggs(0) Edit
上一页 1 2 3 4 5 6 ··· 33 下一页