上一页 1 2 3 4 5 6 ··· 39 下一页
摘要: 链表逆置 public class Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param head ListNode类 * @return ListNode类 */ public ListNode ReverseList 阅读全文
posted @ 2023-11-22 16:24 Chenyi_li 阅读(2) 评论(0) 推荐(0) 编辑
摘要: import java.util.Stack; public class Solution { Stack<Integer> stack1 = new Stack<Integer>(); Stack<Integer> stack2 = new Stack<Integer>(); public voi 阅读全文
posted @ 2023-11-22 15:32 Chenyi_li 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 层次遍历 /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode() {} * TreeNode(int v 阅读全文
posted @ 2023-11-22 11:46 Chenyi_li 阅读(1) 评论(0) 推荐(0) 编辑
摘要: jdbc和Mybatis的区别? JDBC(Java Database Connectivity)和 MyBatis(也称为 iBatis)都是用于在 Java 应用程序中访问数据库的工具,但它们有一些重要的区别。 抽象程度: 1.JDBC: 是 Java 标准库的一部分,提供了一组用于执行 SQL 阅读全文
posted @ 2023-11-22 09:27 Chenyi_li 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 快速排序 package jh; public class QuickSort { public static int partition(int[] array,int start,int end){ int base = array[start]; while (start < end){ // 阅读全文
posted @ 2023-11-21 22:47 Chenyi_li 阅读(4) 评论(0) 推荐(0) 编辑
摘要: ![](https://img2023.cnblogs.com/blog/1892439/202311/1892439-20231121155050829-861150171.png) 阅读全文
posted @ 2023-11-21 15:50 Chenyi_li 阅读(3) 评论(0) 推荐(0) 编辑
摘要: https://zhuanlan.zhihu.com/p/627439840 阅读全文
posted @ 2023-11-18 19:08 Chenyi_li 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 最简单的join方法 public class Test { public static void main(String[] args) throws InterruptedException{ for(int i = 0; i < 50; i ++){ Thread threadA = new 阅读全文
posted @ 2023-11-14 17:13 Chenyi_li 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 1.进程简单来说就是一个正在运行的程序,QQ就是个进程,微信也是个进程。线程是系统分配处理器时间的基本单元。 2.进程有自己的堆栈空间和数据段,开销是比较大的。线程有独立的堆栈空间,但是数据段是共享的,开销会更小,切换速度更快。但是安全性比进程要差。在保护模式下,进程崩溃不会对其他进程产生影响。 3 阅读全文
posted @ 2023-11-12 16:44 Chenyi_li 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 转载:https://www.bilibili.com/video/BV1Nw411m7rp/?spm_id_from=333.337.search-card.all.click&vd_source=46d50b5d646b50dcb2a208d3946b1598 阅读全文
posted @ 2023-11-11 19:25 Chenyi_li 阅读(16) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 39 下一页