上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 21 下一页
摘要: https://leetcode.cn/problems/maximum-score-of-spliced-array/description/ 这一题应该算一个连续最大子数组思维题,要点是根据差数组去做,然后求最值 class Solution { public: int maximumsSpli 阅读全文
posted @ 2024-04-14 20:24 风乐 阅读(13) 评论(0) 推荐(0)
摘要: 之前写此篇博客的时候没看见这篇,感觉写的很不错现在加上供参考:https://blog.csdn.net/mnicsm/article/details/124270564 在进行Feign的自定义配置时,只需要在对应的@EnableFeignClients上配置defaultConfiguratio 阅读全文
posted @ 2023-10-16 17:19 风乐 阅读(294) 评论(0) 推荐(0)
摘要: https://dandelioncloud.cn/article/details/1482887703812452354这个写的挺好我们需要回滚的是逻辑业务出现异常的状况 而若写在dao层,那么dao层只会出现数据库异常,类似于一个unsigned类型减到负数这样的操作 这样在出现业务逻辑异常时( 阅读全文
posted @ 2023-07-16 13:12 风乐 阅读(57) 评论(0) 推荐(0)
摘要: https://www.luogu.com.cn/problem/P1025 #include<iostream> #include<cstring> #include<cstdio> #include<algorithm> using namespace std; const int N = 10 阅读全文
posted @ 2023-07-02 20:50 风乐 阅读(78) 评论(0) 推荐(0)
摘要: https://www.acwing.com/problem/content/1102/ 数据范围为1e5 实际上还可以再继续细分,加入特判来优化耗时,但是意义不大 #include<iostream> #include<cstring> #include<cstdio> #include<queu 阅读全文
posted @ 2023-06-16 22:40 风乐 阅读(14) 评论(0) 推荐(0)
摘要: 朴素Dijkstra https://www.acwing.com/problem/content/description/851/ O(N^2) #include<iostream> #include<algorithm> #include<cstring> #include<cstdio> us 阅读全文
posted @ 2023-05-18 17:17 风乐 阅读(22) 评论(0) 推荐(0)
摘要: https://www.acwing.com/problem/content/description/804/ #include<iostream> #include<cstring> #include<algorithm> #include<cstdio> #include<vector> usi 阅读全文
posted @ 2023-05-16 17:34 风乐 阅读(19) 评论(0) 推荐(0)
摘要: https://leetcode.cn/problems/count-negative-numbers-in-a-sorted-matrix/ 1351. 统计有序矩阵中的负数 1.二分法:把每一行进行一遍二分,找到正数与负数的边界,且此时grid[i][mid]也为负数,即边界下标的对应值是负数的 阅读全文
posted @ 2023-04-26 22:26 风乐 阅读(23) 评论(0) 推荐(0)
摘要: git介绍:git是一款SCM软件,用来管理源码文件,需求文档,设计文档,开发文档等项目文件 在团队开发中,通过SCM软件管理这些文件,而业界用的较多的是git,它支持多人协作同时开发,且不需要中央服务器,而是分布式的版本控制系统 git也是linus为了方便管理linux内核而开发的 基础概念:1 阅读全文
posted @ 2023-04-26 12:31 风乐 阅读(34) 评论(0) 推荐(0)
摘要: https://leetcode.cn/problems/find-smallest-letter-greater-than-target/ 简单二分,需要注意的是此题的二分check条件if(letters[mid]>target),这里的大于号是不能为大于等于的 若等于,则最后的l或r下标就会可 阅读全文
posted @ 2023-04-19 20:55 风乐 阅读(19) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 21 下一页