上一页 1 2 3 4 5 6 7 8 9 10 ··· 46 下一页

2021年5月23日

字符串全排列

摘要: public void perm(char[] chs, int start, List<String > res) { if (start == chs.length - 1) { res.add(new String(chs)); } else { for (int i = start; i < 阅读全文

posted @ 2021-05-23 15:21 luckygxf 阅读(80) 评论(0) 推荐(0) 编辑

2021年5月14日

[LeetCode] 543. 二叉树的直径

摘要: 给定一棵二叉树,你需要计算它的直径长度。一棵二叉树的直径长度是任意两个结点路径长度中的最大值。这条路径可能穿过也可能不穿过根结点。 示例 :给定二叉树 1 / \ 2 3 / \ 4 5 返回 3, 它的长度是路径 [4,2,1,3] 或者 [5,2,1,3]。 注意:两结点之间的路径长度是以它们之 阅读全文

posted @ 2021-05-14 01:41 luckygxf 阅读(24) 评论(0) 推荐(0) 编辑

2021年3月14日

Mybatis源码分析(一)

摘要: 1. 使用SqlSessionFactory获取SqlSession 2. 通过JDK动态代理获取Mapper接口代理对象 3. 解析mapper.xml保存,通过jdbc,statment,preparestament执行查询等操作 4. 通过反射,构造函数构造对象,通过反射set方法设置对象各个 阅读全文

posted @ 2021-03-14 22:36 luckygxf 阅读(46) 评论(0) 推荐(0) 编辑

2021年3月13日

Springboot mybatis整合

摘要: 项目结构 1. pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema- 阅读全文

posted @ 2021-03-13 22:17 luckygxf 阅读(71) 评论(0) 推荐(0) 编辑

2021年1月17日

Dockerfile创建docker

摘要: Dockerfile FROM centos RUN echo '这是一个本地构建的nginx镜像' > /home/index.html 执行docker build -t centos:v1 . 进入容器看文件 阅读全文

posted @ 2021-01-17 22:07 luckygxf 阅读(61) 评论(0) 推荐(0) 编辑

2020年11月26日

多个查询条件查询数据库

摘要: 组合查询,工厂,模板 阅读全文

posted @ 2020-11-26 01:05 luckygxf 阅读(495) 评论(0) 推荐(0) 编辑

2020年3月24日

c pthread_cond_t demo

摘要: // // Created by gxf on 2020/3/24. // #include <stdio.h> #include <pthread.h> #include <stdlib.h> #include <unistd.h> pthread_mutex_t lock = PTHREAD_M 阅读全文

posted @ 2020-03-24 01:17 luckygxf 阅读(211) 评论(0) 推荐(0) 编辑

2020年3月20日

void*函数指针

摘要: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <pthread.h> #include <time.h> #include <unistd.h> void test(char *msg) ; void test 阅读全文

posted @ 2020-03-20 01:12 luckygxf 阅读(705) 评论(0) 推荐(0) 编辑

2020年3月17日

c语言变长数组

摘要: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <pthread.h> #include <time.h> #include <unistd.h> typedef struct score_s{ char nam 阅读全文

posted @ 2020-03-17 00:51 luckygxf 阅读(660) 评论(0) 推荐(0) 编辑

c语言strftime demo

摘要: time.h 格式化日期 time()获取当前日期的秒,localtime()获取当前时间字段, strftime格式化日期到字符串 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <pthread.h> #in 阅读全文

posted @ 2020-03-17 00:39 luckygxf 阅读(258) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 10 ··· 46 下一页

导航