上一页 1 2 3 4 5 6 7 8 9 10 ··· 41 下一页
摘要: 1.操作系统进程和线程的区别,子进程和父进程的关系是什么样的,子进程的资源和父进程是什么关系。 2.用户态线程和内核态的线程是一个什么样的关系呢。 Linux是多对多,window是一对一。多对多效率更高一些。 https://blog.csdn.net/weixin_42873905/articl 阅读全文
posted @ 2023-09-26 10:32 Chenyi_li 阅读(21) 评论(0) 推荐(0)
摘要: class Solution { public boolean canPartition(int[] nums) { int len = nums.length; // 题目已经说非空数组,可以不做非空判断 int sum = 0; for (int num : nums) { sum += num 阅读全文
posted @ 2023-09-25 21:41 Chenyi_li 阅读(9) 评论(0) 推荐(0)
摘要: https://programmercarl.com/背包理论基础01背包-1.html#总结 https://www.bilibili.com/video/BV1C7411K79w?p=1&vd_source=46d50b5d646b50dcb2a208d3946b1598 package dyn 阅读全文
posted @ 2023-09-25 21:12 Chenyi_li 阅读(12) 评论(0) 推荐(0)
摘要: // 1.从数组中找出第三大的数,例如{10,10,9,9,8,8,7,7} 第三大的数是8 414. 第三大的数 public class ThirdLargestNumber { public static void main(String[] args) { int[] nums = {10, 阅读全文
posted @ 2023-09-11 21:46 Chenyi_li 阅读(222) 评论(0) 推荐(0)
摘要: 学习:https://www.bilibili.com/video/BV1KS4y147Yc/?spm_id_from=333.788.recommend_more_video.-1&vd_source=46d50b5d646b50dcb2a208d3946b1598 阅读全文
posted @ 2023-09-10 16:53 Chenyi_li 阅读(19) 评论(0) 推荐(0)
摘要: 转载:https://juejin.cn/post/7159493623468261407?searchId=20230904111052C9DD640A396E0D04C08E 阅读全文
posted @ 2023-09-04 11:19 Chenyi_li 阅读(17) 评论(0) 推荐(0)
摘要: ![](https://img2023.cnblogs.com/blog/1892439/202309/1892439-20230903134550482-1463950412.png) ![](https://img2023.cnblogs.com/blog/1892439/202309/1892 阅读全文
posted @ 2023-09-03 13:47 Chenyi_li 阅读(7) 评论(0) 推荐(0)
摘要: 学习: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 阅读(17) 评论(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 阅读(35) 评论(0) 推荐(0)
摘要: 要求长度为 k 的连续子数组的最大和,可以使用滑动窗口的方法来解决。具体步骤如下: ``` public int findMaxSum(int[] nums, int k) { int maxSum = 0; // 最大和 int currSum = 0; // 当前窗口的和 // 第一个窗口的求和 阅读全文
posted @ 2023-08-29 21:29 Chenyi_li 阅读(87) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 41 下一页