08 2023 档案

摘要:学习:https://www.bilibili.com/video/BV1fp4y1D7cj/?spm_id_from=333.788.top_right_bar_window_history.content.click&vd_source=46d50b5d646b50dcb2a208d3946b1 阅读全文
posted @ 2023-08-30 15:52 Chenyi_li 阅读(10) 评论(0) 推荐(0) 编辑
摘要:学习:https://www.bilibili.com/video/BV1tZ4y1Y7dF/?spm_id_from=333.337.search-card.all.click&vd_source=46d50b5d646b50dcb2a208d3946b1598 堆排序: https://www. 阅读全文
posted @ 2023-08-30 14:25 Chenyi_li 阅读(25) 评论(0) 推荐(0) 编辑
摘要:要求长度为 k 的连续子数组的最大和,可以使用滑动窗口的方法来解决。具体步骤如下: ``` public int findMaxSum(int[] nums, int k) { int maxSum = 0; // 最大和 int currSum = 0; // 当前窗口的和 // 第一个窗口的求和 阅读全文
posted @ 2023-08-29 21:29 Chenyi_li 阅读(56) 评论(0) 推荐(0) 编辑
摘要:给定一个升序排列的的长度为n的数组nums,数组中每个元素都是正整数,请删除一部分这个数组的重复元素(数组元素需要原地改变),让这个数组中的每个数字都严格大于前一个数(第一个数除外),然后返回删除过后该数组的长度。例如n=4,nums=[1,2,2,3],则输出3.java代码实现 ``` publ 阅读全文
posted @ 2023-08-29 21:22 Chenyi_li 阅读(14) 评论(0) 推荐(0) 编辑
摘要:学习:https://juejin.cn/post/7243987464297070647?searchId=202308240836335CB2B5EBDCD1879D6FB1 https://www.bilibili.com/video/BV1bo4y1E7TK/?spm_id_from=333 阅读全文
posted @ 2023-08-24 09:25 Chenyi_li 阅读(8) 评论(0) 推荐(0) 编辑
摘要:学习:https://www.bilibili.com/video/BV1RB4y1n7P1/?spm_id_from=333.999.0.0&vd_source=46d50b5d646b50dcb2a208d3946b1598 阅读全文
posted @ 2023-08-23 15:18 Chenyi_li 阅读(6) 评论(0) 推荐(0) 编辑
摘要:BeanFactory BeanFactory是一个接口也是IOC最基本的容器,负责生产和管理bean,它为其他具体的IOC容器提供了最基本的规范,比如DefaultListableBeanFactory、XmlBeanFactory、ApplicationContext等具体的容器都是对BeanF 阅读全文
posted @ 2023-08-23 09:11 Chenyi_li 阅读(29) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/qq_48626761/article/details/131780885 阅读全文
posted @ 2023-08-22 19:59 Chenyi_li 阅读(5) 评论(0) 推荐(0) 编辑
摘要:转载:https://mp.weixin.qq.com/s/gSBJ2e5a51FmyMpTXR7nyA https://blog.csdn.net/qq_17236715/article/details/126756170 https://zhuanlan.zhihu.com/p/50771127 阅读全文
posted @ 2023-08-21 21:47 Chenyi_li 阅读(8) 评论(0) 推荐(0) 编辑
摘要:synchronized package juc; public class Print100 { private static volatile int nums = 0; private static final Object lock = new Object(); public static 阅读全文
posted @ 2023-08-21 16:27 Chenyi_li 阅读(4) 评论(0) 推荐(0) 编辑
摘要:## 一面 1.spring和springboot的区别。 2.spring的生命周期。 3.spring的事务的了解。事务的失效场景。 4.mybatis缓存sqlsession。 5.mybatis的xml和mapper接口是如何对应的。 6.mysql的索引。索引底层结构,主键索引非主键索引。 阅读全文
posted @ 2023-08-20 16:19 Chenyi_li 阅读(5) 评论(0) 推荐(0) 编辑
摘要:[LCR 026. 重排链表](https://leetcode.cn/problems/LGjMqU/description/) ``` /** * Definition for singly-linked list. * public class ListNode { * int val; * 阅读全文
posted @ 2023-08-18 20:31 Chenyi_li 阅读(9) 评论(0) 推荐(0) 编辑
摘要:[662. 二叉树最大宽度](https://leetcode.cn/problems/maximum-width-of-binary-tree/description/) ## BFS ,也就是广度优先遍历,类似层次遍历的方法(同上给每个节点编上号),求得每一层,把每一层的左右两端的编号进行相减。 阅读全文
posted @ 2023-08-18 16:26 Chenyi_li 阅读(7) 评论(0) 推荐(0) 编辑
摘要:[73.矩阵置零](https://leetcode.cn/problems/set-matrix-zeroes/solutions/6594/o1kong-jian-by-powcai/?envType=study-plan-v2&envId=top-100-liked) 思路: 思路一: 用 O 阅读全文
posted @ 2023-08-16 19:55 Chenyi_li 阅读(46) 评论(0) 推荐(0) 编辑
摘要:[240. 搜索二维矩阵 II](https://leetcode.cn/problems/search-a-2d-matrix-ii/solutions/2361487/240-sou-suo-er-wei-ju-zhen-iitan-xin-qin-7mtf/?envType=study-pla 阅读全文
posted @ 2023-08-16 14:46 Chenyi_li 阅读(3) 评论(0) 推荐(0) 编辑
摘要:转载主页:https://www.nowcoder.com/users/387822655 [20230814:快手三面](https://www.nowcoder.com/discuss/520740360092459008?sourceSSR=users) 阅读全文
posted @ 2023-08-15 20:52 Chenyi_li 阅读(4) 评论(0) 推荐(0) 编辑
摘要:[54. 螺旋矩阵](https://leetcode.cn/problems/spiral-matrix/description/?envType=study-plan-v2&envId=top-100-liked) ``` class Solution { public List spiralO 阅读全文
posted @ 2023-08-14 22:05 Chenyi_li 阅读(6) 评论(0) 推荐(0) 编辑
摘要:## 过程 双方都生成私钥和公钥, 双方只首次建立链接时互相交换公钥, 然后双方互相用对面的公钥进行数据加密, 双方互相发送加密后的密文, 然后双方自己用自己本地的私钥进行解密 也就是说整个过程中:网络中交换数据时用对面给的公钥加密;本地自己收到加密后的密文后自己用私钥解密。 如果上面写的,还不明白 阅读全文
posted @ 2023-08-14 16:50 Chenyi_li 阅读(28) 评论(0) 推荐(0) 编辑
摘要:![](https://img2023.cnblogs.com/blog/1892439/202308/1892439-20230813190602065-1501057795.png) https://www.xiaolincoding.com/network/2_http/http_interv 阅读全文
posted @ 2023-08-13 19:39 Chenyi_li 阅读(18) 评论(0) 推荐(0) 编辑
摘要:1.暴力法的优化 子循环中记录和 class Solution { public int subarraySum(int[] nums, int k) { int count = 0; for(int i=0; i<nums.length; i++){ int sum=0; for(int j=i; 阅读全文
posted @ 2023-08-13 16:23 Chenyi_li 阅读(5) 评论(0) 推荐(0) 编辑
摘要:![](https://img2023.cnblogs.com/blog/1892439/202308/1892439-20230813151446446-1021164429.png) 核心点是要增强的对象,代理模式是代理类内部new出来的,装饰器模式是外部传进来的。 https://www.bi 阅读全文
posted @ 2023-08-13 15:15 Chenyi_li 阅读(8) 评论(0) 推荐(0) 编辑
摘要:![](https://img2023.cnblogs.com/blog/1892439/202308/1892439-20230812214348694-366989869.png) ![](https://img2023.cnblogs.com/blog/1892439/202308/18924 阅读全文
posted @ 2023-08-12 21:51 Chenyi_li 阅读(5) 评论(0) 推荐(0) 编辑
摘要:解题思路: 我们要知道,饼干数决定喂饱的孩子的数,所以我们以饼干数做循环。 先将两个数组进行排序(sort),【贪心算法就是在每一步选择最优解,即最小的饼干要给满足度最小的孩子,才能达到最大化的价值】, 定义结果为res。 我们创建两个指针(i,j) i指向第一个孩子,j指向第一个饼干,出现的情况: 阅读全文
posted @ 2023-08-05 10:20 Chenyi_li 阅读(2) 评论(0) 推荐(0) 编辑
摘要:[剑指 Offer 42. 连续子数组的最大和](https://leetcode.cn/problems/lian-xu-zi-shu-zu-de-zui-da-he-lcof/description/) ``` class Solution { public int maxSubArray(in 阅读全文
posted @ 2023-08-04 15:09 Chenyi_li 阅读(6) 评论(0) 推荐(0) 编辑
摘要:[剑指 Offer 34. 二叉树中和为某一值的路径](https://leetcode.cn/problems/er-cha-shu-zhong-he-wei-mou-yi-zhi-de-lu-jing-lcof/description/) ## 1.先写一种错误的写法,这是自己第一次写的写法 ` 阅读全文
posted @ 2023-08-04 11:11 Chenyi_li 阅读(5) 评论(0) 推荐(0) 编辑
摘要:忘记录音的,残存记忆。 ##1.进程和线程的区别。 进程指操作系统中正在运行的程序 线程是系统分配处理器时间的最小单元 1.区别 进程拥有独立的堆栈空间和数据段,需要分配独立的地址空间 开销大 线程开销小 切换快 没进程安全。从通信机制上,线程可共享数据段。 2.怎么选 线程 频繁创建销毁 切换 并 阅读全文
posted @ 2023-08-02 19:14 Chenyi_li 阅读(22) 评论(0) 推荐(0) 编辑
摘要:![](https://img2023.cnblogs.com/blog/1892439/202308/1892439-20230802152535054-855292408.png) 阅读全文
posted @ 2023-08-02 15:26 Chenyi_li 阅读(8) 评论(0) 推荐(0) 编辑
摘要:线程池异常:https://www.bilibili.com/video/BV1JF411X7bD/?spm_id_from=333.880.my_history.page.click&vd_source=46d50b5d646b50dcb2a208d3946b1598 submit不抛出异常:ht 阅读全文
posted @ 2023-08-01 14:56 Chenyi_li 阅读(4) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示