摘要: LeetCode 435. Non-overlapping Intervals 贪心 按照有边界排序,只有先选择了右边边界小的,才可以放下更多的区间 class Solution { public: int eraseOverlapIntervals(vector<vector<int>>& intervals) { if(intervals.empty()) return 0 阅读全文
posted @ 2022-11-08 19:30 破忒头头 阅读(25) 评论(0) 推荐(0)
摘要: LeetCode 135. Candy 贪心算法 贪心策略:在每次遍历中,仅考虑并更新相邻一侧的大小关系 class Solution { public: int candy(vector<int>& ratings) { int size = ratings.size(); if(size<2){ return size; } vect 阅读全文
posted @ 2022-11-08 19:04 破忒头头 阅读(25) 评论(0) 推荐(0)
摘要: 贪心 class Solution { public: int findContentChildren(vector<int>& g, vector<int>& s) { sort(g.begin(),g.end()); sort(s.begin(),s.end()); int cd=0; int 阅读全文
posted @ 2022-11-08 19:04 破忒头头 阅读(22) 评论(0) 推荐(0)
摘要: 经过三天的不屑努力终于把这个课设做完了,我的代码可以说是一点一点bug堆出来的,代码我自己都不忍直视,简直就是💩山。 想要具体代码的可以去我的github仓库里拿(我用这里的代码块展示汇编语言一直格式怪怪的,我怀疑是网站的问题,所以就放在仓库了) 仓库💩 (太不容易了,这几天脖子还扭了,知道我的 阅读全文
posted @ 2022-11-02 20:36 破忒头头 阅读(26) 评论(0) 推荐(0)
摘要: ![](https://img2022.cnblogs.com/blog/2836885/202210/2836885-20221031112822886-1923423364.png)![](https://img2022.cnblogs.com/blog/2836885/202210/2836885-20221031112942144-206703343.png) 阅读全文
posted @ 2022-10-31 11:29 破忒头头 阅读(28) 评论(0) 推荐(0)
摘要: 结果 阅读全文
posted @ 2022-10-20 08:23 破忒头头 阅读(28) 评论(0) 推荐(0)
摘要: 原文🌈教程 项目文件结构 main.c function.h function.c # 最终构建目标 TARGET_EXEC := final_program # 构建目录 BUILD_DIR := ./build # 源文件目录 SRC_DIRS := ./src # 查找src目录下的所有.c 阅读全文
posted @ 2022-10-19 10:48 破忒头头 阅读(27) 评论(0) 推荐(0)
摘要: 实现代码: assume cs:codesg,ss:stacksg,ds:datasg stacksg segment dw 0,0,0,0,0,0,0,0 stacksg ends datasg segment db '1. display ' db '2. brows ' db '3. repl 阅读全文
posted @ 2022-10-18 19:47 破忒头头 阅读(48) 评论(0) 推荐(0)
摘要: RabbitMQ演示代码+Spring/SpringBoot整合RabbitMQ ✨ (GitHub仓库链接)[https://github.com/2537422279/RabbitMQDemo] 基于队列发送消息 1.Hello_wordl!(基本消息队列) 代码实现 consumer pack 阅读全文
posted @ 2022-10-04 19:36 破忒头头 阅读(37) 评论(0) 推荐(0)
摘要: SSM项目整合 由于SpringMVC是Spring框架中的一个模块,所以SSM框架整合只需要进行Spring与Mybatis和SpringMVC和Mybatis之间的整合 1、导入依赖 <dependencies> <!-- 单元测试整合--> <dependency> <groupId>juni 阅读全文
posted @ 2022-07-15 21:54 破忒头头 阅读(69) 评论(0) 推荐(0)