题库 总和leetcode 39

[Leetcode] 0728. 自除数

# [728. 自除数](https://leetcode.cn/problems/self-dividing-numbers) 点击上方,跳转至leetcode ## 题目描述 自除数 是指可以被它包含的每一位数整除的数。 例如,128 是一个 自除数 ,因为 128 % 1 == 0,128 % ......
除数 Leetcode 0728

[Leetcode] 0733. 图像渲染

# [733. 图像渲染](https://leetcode.cn/problems/flood-fill) 点击上方,跳转至leetcode ## 题目描述 有一幅以 m x n 的二维整数数组表示的图画 image ,其中 image[i][j] 表示该图画的像素值大小。 你也被给予三个整数 s ......
Leetcode 图像 0733

[Leetcode] 0724. 寻找数组的中心下标

# [724. 寻找数组的中心下标](https://leetcode.cn/problems/find-pivot-index) 点击上方,跳转至leetcode ## 题目描述 给你一个整数数组 nums ,请计算数组的 中心下标 。 数组 中心下标 是数组的一个下标,其左侧所有元素相加的和等于 ......
下标 数组 Leetcode 0724

[Leetcode] 0709. 转换成小写字母

# [709. 转换成小写字母](https://leetcode.cn/problems/to-lower-case) 点击上方跳转至Leetcode ## 题目描述 给你一个字符串 s ,将该字符串中的大写字母转换成相同的小写字母,返回新的字符串。 示例 1: 输入:s = "Hello" 输出 ......
小写 字母 Leetcode 0709

[Leetcode] 0717. 1 比特与 2 比特字符

# [717. 1 比特与 2 比特字符](https://leetcode.cn/problems/1-bit-and-2-bit-characters) 点击上方,跳转至leetcode ## 题目描述 有两种特殊字符: 第一种字符可以用一比特 0 表示 第二种字符可以用两比特(10 或 11) ......
字符 Leetcode 0717

[Leetcode] 0706. 设计哈希映射

# [706. 设计哈希映射](https://leetcode.cn/problems/design-hashmap) 点击跳转至leetcode ## 题目描述 不使用任何内建的哈希表库设计一个哈希映射(HashMap)。 实现 MyHashMap 类: MyHashMap() 用空映射初始化对 ......
Leetcode 0706

记录一个python 导包bug ModuleNotFoundError: No module named 'model.tools'; 'model' is not a package

当前目录下明明有model.tools却找不到! 2个要点缺一不可 1.model文件夹下需要__init__.py文件 2.sys.path.insert(0,project_path) project_path放在sys.path首位优先搜索,因为sys.path中有其他model文件夹,如果不 ......
model ModuleNotFoundError 39 package python

mysqldump: Got error: 1066: Not unique table/alias: 'table_name' when using LOCK TABLES

### 1、前言 因旧项目情况,mysql数据库区分大小写lower_case_table_names=0 现进行重构,重构数据库中,定时任务表是以 QRTZ_ 开头的,故需要不区分大小写,lower_case_table_names=1 修改完my.cnf配置文件,并重启数据库服务后,出现了两张相 ......
table table_name mysqldump TABLES unique

CF1136E - Nastya Hasn't Written a Legend

我们发现,如果我们把 $\sum_{j a_{i+1}$ 就变成 $b_i>b_{i+1}$。从一个奇怪的递推关系变成了很好的偏序关系。而且我们由此知道序列在任何时候是有序的。 所以,我们把 $a_i-\sum_{j>1); init(i>1)+1,r); sg[i].s=(sg[ir||sg[i] ......
Written Nastya Legend 1136E 1136

IEEE39节点 新英格兰39节点系统仿真 Matlab/simulink

IEEE39节点 新英格兰39节点系统仿真Matlab/simulink质量过硬,非诚勿扰!该模型为自己搭建,电压潮流稳定,与标准参数一致,可观测电压,潮流;可用于电力系统暂态仿真研究。 ID:34599595406290973 ......
节点 simulink Matlab 系统 IEEE

2023-06-20 hexo博客 运行报错:Cannot find module 'hexo' from 'D:\ablog' 提示要rm -rf node_modules && npm install --force

前言:把博客拉到到新电脑,运行hexo s报错如下: PS D:\ablog> hexo s ERROR Cannot find module 'hexo' from 'D:\ablog' ERROR Local hexo loading failed in D:\ablog ERROR Try r ......
hexo 39 node_modules amp install

代码随想录算法训练营第39天 | ● 62.不同路径 ● 63. 不同路径 II - 第9章 动态规划part02

第九章 动态规划part02 ● 62.不同路径 ● 63. 不同路径 II 今天开始逐渐有 dp的感觉了,题目不多,就两个 不同路径,可以好好研究一下 详细布置 62.不同路径 本题大家掌握动态规划的方法就可以。 数论方法 有点非主流,很难想到。 https://programmercarl.co ......
路径 随想录 训练营 随想 算法

django orm 多对多 'NoneType' object is not iterable

1、报错截图,当小伙伴们遇到这种沙雕问题时是不是也是很烦躁? 2、分析Traceback ,发现有熟悉的,我重写了admin.ModelAdmin的save_related方法,分析应该是再多对多保存时出现了问题。 3、看上去好像是scripts这个字段在保存时出现了问题。然后发现这个字段在后台也做 ......
NoneType iterable django object 39

(Leetcode)将数组按照绝对值大小从大到小排序

【少说多做,少想多做】 ```java nums = IntStream.of(nums). boxed(). sorted((o1,o2)->Math.abs(o2)-Math.abs(o1)) .mapToInt(Integer::intValue).toArray(); ``` + IntSt ......
绝对值 数组 Leetcode 大小

[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 ......
LeetCode Averages Subarray Radius 2090

每日一题力扣 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 ......
maven install plugin maven-install-plugin 39

Error in onReady hook: "TypeError: Cannot read properties of undefined (reading 'setRules')" found in

使用弹出层过程中 使用form表单增加 rules报错 解决方法:https://www.dianjilingqu.com/391974.html 可参考,是否有用未验证。 ......
quot properties TypeError undefined setRules

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 ......
39 TypeError storeInfo undefined operator

[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, ......
Divisible LeetCode Greatest Three 1262

[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 ......
cache 39 lock 20230616 Deadlock

Day39【八】基于面向对象设计游戏对战

## 【八】基于面向对象设计游戏对战 ### 【1】定义锐雯类: ![](https://img2023.cnblogs.com/blog/2322215/202306/2322215-20230619201809101-268218524.png) ![](https://img2023.cnbl ......
对象 Day 39

修改 $_SERVER['HOME']

PHP升级到8.2版本后,print_r($_SERVER); 发现多了 [HOME] => /var/www phpinfo()函数中的 Environment 项也有 HOME /var/www 推测 $_SERVER['HOME'] 调用了apache用户 www-data 的主目录 /var ......
SERVER 39 HOME

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头文件之前增加宏定义 ......
workaround collision for detected log4cpp

centos下nginx使用Let's Encrypt 申请免费 SSL 证书

#### 应用场景:想使用https,但是又不想花钱购买证书,也不是阿里和腾讯的可以免费申请 以下是具体操作步骤: 1.配置 DNS 记录 在申请二级域名 SSL 证书之前,需要先将该二级域名解析到您的服务器 IP 地址。 2.安装 Certbot: Certbot 是 Let’s Encrypt ......
申请免费 证书 Encrypt centos nginx

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 场 · 数 ......
背包 LeetCode 2023 350 06

python import 报错 No module named '_ssh'

linux 上import 时的一种报错 查询下openssl 是否安装,或者版本太低,python3需要openssl 1.0以上版本 openssl version 安装与卸载 openssl 卸载openssl: whereis openssl |xargs rm -frv 官网(http:/ ......
python import module named 39

ASP.NET Core 6框架揭秘实例演示[39]:使用最简洁的代码实现登录、认证和注销

认证是一个确定请求访问者真实身份的过程,与认证相关的还有其他两个基本操作——登录和注销。ASP.NET Core利用AuthenticationMiddleware中间件完成针对请求的认证,并提供了用于登录、注销以及“质询”的API,本篇文章利用它们使用最简单的代码实现这些功能。 ......
框架 实例 代码 Core ASP