总和leetcode 39
[LeetCode] 2090. K Radius Subarray Averages
You are given a 0-indexed array nums of n integers, and an integer k. The k-radius average for a subarray of nums centered at some index i with the ra ......
每日一题力扣 1262 https://leetcode.cn/problems/greatest-sum-divisible-by-three/
、 题解 这道题目核心就算是要知道如果x%3=2的话,应该要去拿%3=1的数字,这样子才能满足%3=0 贪心 sum不够%3的时候,就减去余数为1的或者余数为2的 需要注意 两个余数为1会变成余数为2的,所以可能减去2个余数为1 核心代码如下 public int maxSumDivThreeOth ......
maven构建报错:Unable to load the mojo 'install' (or one of its required components) from the plugin 'org.apache.maven.plugins:maven-install-plugin:2.4'
项目在执行maven clean install时,报错: Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4:install (default-install) on project sby-compon ......
Error in onReady hook: "TypeError: Cannot read properties of undefined (reading 'setRules')" found in
使用弹出层过程中 使用form表单增加 rules报错 解决方法:https://www.dianjilingqu.com/391974.html 可参考,是否有用未验证。 ......
2023-06-20 TypeError: Cannot use 'in' operator to search for 'storeInfo' in undefined
前言:uniapp项目报错:[system] TypeError: Cannot use 'in' operator to search for 'storeInfo' in undefined 原因:data里面没有写return,如下: <script> export default { dat ......
[LeetCode] 1262. Greatest Sum Divisible by Three
Given an integer array nums, return the maximum possible sum of elements of the array such that it is divisible by three. Example 1: Input: nums = [3, ......
[20230616]One Deadlock of 'row cache lock' and 'library cache lock'.txt
[20230616]One Deadlock of 'row cache lock' and 'library cache lock'.txt--//链接http://ksun-oracle.blogspot.com/2023/06/one-deadlock-of-row-cache-lock-an ......
Day39【八】基于面向对象设计游戏对战
## 【八】基于面向对象设计游戏对战 ### 【1】定义锐雯类:  ; 发现多了 [HOME] => /var/www phpinfo()函数中的 Environment 项也有 HOME /var/www 推测 $_SERVER['HOME'] 调用了apache用户 www-data 的主目录 /var ......
log4cpp Naming collision for 'ERROR' detected. Please read the FAQ for a workaround
log4cpp使用 http://log4cpp.sourceforge.net/ 编译时候遇到:Naming collision for 'ERROR' detected. Please read the FAQ for a workaround 解决方法:在包含log4cpp头文件之前增加宏定义 ......
centos下nginx使用Let's Encrypt 申请免费 SSL 证书
#### 应用场景:想使用https,但是又不想花钱购买证书,也不是阿里和腾讯的可以免费申请 以下是具体操作步骤: 1.配置 DNS 记录 在申请二级域名 SSL 证书之前,需要先将该二级域名解析到您的服务器 IP 地址。 2.安装 Certbot: Certbot 是 Let’s Encrypt ......
Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/baomidou/mybatisplus/autoconfigure/MybatisPlusAutoConfiguration.class]
项目启动报错原因分析 背景:system模块一个月未重启过,今天重启报数据源问题 原因:这里报错的原因是数据源配置问题 解决:数据源配置在nacos中,拿该模块的nacos数据源配置与项目启动成功的模块的数据源配置进行对比,检查出不同,改为一样即可 ......
LeetCode 周赛 350(2023/06/18)01 背包变型题
> **本文已收录到 [AndroidFamily](https://github.com/pengxurui/AndroidFamily),技术和职场问题,请关注公众号 [彭旭锐] 和 [BaguTree Pro] 知识星球提问。** - 往期回顾:[LeetCode 单周赛第 348 场 · 数 ......
python import 报错 No module named '_ssh'
linux 上import 时的一种报错 查询下openssl 是否安装,或者版本太低,python3需要openssl 1.0以上版本 openssl version 安装与卸载 openssl 卸载openssl: whereis openssl |xargs rm -frv 官网(http:/ ......
ASP.NET Core 6框架揭秘实例演示[39]:使用最简洁的代码实现登录、认证和注销
认证是一个确定请求访问者真实身份的过程,与认证相关的还有其他两个基本操作——登录和注销。ASP.NET Core利用AuthenticationMiddleware中间件完成针对请求的认证,并提供了用于登录、注销以及“质询”的API,本篇文章利用它们使用最简单的代码实现这些功能。 ......
Leetcode Hot 100 & 239. Sliding Window Maximum
参考资料: Python文档heapq部分 考点:子串 & [题干] 1 Input: nums = [1,3,-1,-3,5,3,6,7], k = 3 2 Output: [3,3,5,5,6,7] 3 Explanation: 4 Window position Max 5 6 [1 3 -1 ......
解决 `remote: You must use a personal access token with 'api' scope for Git over HTTP.`
## 背景 在家远程办公的时候 `git clone` 报错: ``` remote: HTTP Basic: Access denied remote: You must use a personal access token with 'api' scope for Git over HTTP. ......
使用Echarts时报 Implementation of registerMap doesn't exists 错误解决办法
最新的echarts在使用时,如果使用按需加载的方式引入依赖。在使用 `registerMap` 函数时会报错 如果出现这两个错误: ``` Implementation of registerMap doesn't exists. ``` 或者 ``` Map xxx not exists. Th ......
运行python -m uiautomator2 init报错AttributeError: module 'collections' has no attribute 'MutableMapping'问题,已解决
报错信息: Traceback (most recent call last): File "E:\Carte\BB\17 - Site Leadership\alte\Ionel Balauta\Aryeht\Task 1 - Traduce tot site-ul\Doar Google Web ......
SpringBoot集成Swagger报错:Failed to start bean 'documentationPluginsBootstrapper';
本文章向大家介绍SpringBoot集成Swagger报错:Failed to start bean 'documentationPluginsBootstrapper';,主要包括SpringBoot集成Swagger报错:Failed to start bean 'documentationPl ......
STUFF和FOR XML PATH('')
初始状态: 执行代码: SELECT STUFF((SELECT ','+Test_Table FROM dbo.Test_Table_Mapping WHERE ID=1570 FOR XML PATH('')),1,1,'') text 显示结果 在 SQL Server 中,stuff() 函 ......
[6] Fast and Practical Secret Key Extraction by Exploiting Channel Response 论文精读 INFOCOM 13'
摘要 摘要写的很清楚,几句话说明了当前密钥发展现状,即使用RSS为基础的密钥生成解决方案的生成速率有待提升,因此本文主打一个高速率;此外本文提出了CGC算法来解决现实生活中的信道互易性差的问题;此外,其能够抵御被认为对RSS技术有害的恶意攻击! 但是他的Abstract我有一点不满哈,全文都是CSI ......
【LeetCode哈希表】前k个高频词,利用哈希表+vector进行排序操作
### 前k个高频词 https://leetcode.cn/problems/top-k-frequent-words/ 给定一个单词列表 words 和一个整数 k ,返回前 k 个出现次数最多的单词。 返回的答案应该按单词出现频率由高到低排序。如果不同的单词有相同出现频率, 按字典顺序 排序。 ......
Leetcode Hot 100 & 560. Subarray Sum Equals K
参考资料: 考点:子串 & [题干] 1 Input: nums = [1,1,1], k = 2 2 Output: 2 这道题说实话看得我一脸懵,第一时间想到的自然是双层循环遍历的一个$O(n^2)$的解法,也就是官方的解法一。但是使用这种解法会超时(Python语言是这样的,评论区有人提到了) ......
Mr. Kitayuta's Colorful Graph(二维并查集,弱化版)
附加强版链接(待做):Mr. Kitayuta's Colorful Graph - 洛谷 | 计算机科学教育新生态 (luogu.com.cn) Mr. Kitayuta's Colorful Graph time limit per test 1 second memory limit per ......
svn: E155015: Commit failed (details follow): svn: E155015: Aborting commit: 'modules/user.js' remains in conflict
这个意思是冲突了,签出来的时候,会有几个文件。 user.mine.js user.r389.js user.js ... 代表了几个版本 然后合并以后,发现签不上去。 % svn resolved user.js “user.js”的冲突状态已解决 这样再签就可以了。 参考:https://www ......
Access denied for user 'root'@'10.10.1.33'
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '自己数据的密码' WITH GRANT OPTION; FLUSH PRIVILEGES; ......
fatal: unable to access 'https://github.com/JiangYuLab/CNVcaller.git/': TCP connection r
001、git clone报错 002、解决方法 进入github官网,搜索该项目 003、上传至linux、解压 [root@PC1 test2]# unzip CNVcaller-master.zip ......
leetcode735行星碰撞vector模拟栈操作
vector的基本操作: vector<int >v; v.back();//获取尾部数据 v.front();//获取首部数据 v.push_back(3);//在尾部加入数据3 v.pop_back();//弹出尾部数据 首先只有前一个行星向右走,后一个行星向左走才可能相撞。也就是一正一负的组合 ......