- 博客(1358)
- 资源 (13)
- 收藏
- 关注
原创 1043. Partition Array for Maximum Sum
dp[i]表示数组下标i-1处能取得的最大值。可以通过k个状态转化过来。
2024-02-04 03:44:54 145
原创 2966. Divide Array Into Arrays With Max Difference
【代码】2966. Divide Array Into Arrays With Max Difference。
2024-02-01 12:21:51 176
原创 3012. Minimize Length of Array Using Operations
【代码】3012. Minimize Length of Array Using Operations。
2024-01-25 13:24:51 372
原创 1457. Pseudo-Palindromic Paths in a Binary Tree
这里只有None的情况root.left==root.right。
2024-01-24 11:31:07 337
原创 1239. Maximum Length of a Concatenated String with Unique Characters
这里用set append最后就会枚举所有的可能。
2024-01-23 11:45:08 311
原创 438. Find All Anagrams in a String
【代码】438. Find All Anagrams in a String。
2024-01-18 15:24:20 355
原创 540. Single Element in a Sorted Array
【代码】540. Single Element in a Sorted Array。
2024-01-15 05:40:52 401
原创 1192. Critical Connections in a Network
【代码】1192. Critical Connections in a Network。
2024-01-15 02:29:43 354
原创 3007. Maximum Number That Sum of the Prices Is Less Than or Equal to K
(l-1)表示当其中一位设置为1,剩余位的个数。这里会重复枚举数字,但是每个为1的位只算了一次。l//x表示空闲位中可以为1,位的个数。p记录的是前面有几位可以是1。
2024-01-14 13:31:46 528
原创 2999. Count the Number of Powerful Integers
1)首先考虑终止情况,此时最多有一种就是当所有位是exactly s。这里n[i]-1是因为当前位的最大值不能控制后面几位的情况。int(n[i-1])>l此时cnt 完全取到了上限。这里cnt表示的后一位的情况。2) 其次,对于一般情况,(i>0)是要首位不为0。
2024-01-13 11:24:44 375
原创 google drive api
这一行代码中的pageSize实际上有可能是文件数量,如果文件数目超过10,返回的list可能只是一个子集,要把这个数字调大,或者....这里要注意quickstart的code会经常更新,有可能之前的版本不能用了。只有当重新生成token.json,用新的json才有效。2.注意google drive api的scope。1.创建oauth2 json 文件。quickstart 中用的是。这个版本不能下载文件,要改成。3. list 文件。
2024-01-11 15:27:12 475
原创 1026. Maximum Difference Between Node and Ancestor
【代码】1026. Maximum Difference Between Node and Ancestor。
2024-01-11 13:15:42 365
原创 10038. Maximize the Number of Partitions After Operations
最后+1是因为最后一个划分一直没有算上,注意bc>k的时候之前才进行了计算。这里@cache相当于直接数组dp了。1<<s[idx]相当于划分了。
2024-01-07 16:02:25 413
IEEE 会议模板(2019.10).zip
2020-05-15
springer LNCS.zip
2020-02-01
WinSetupFromUSB.zip
2020-01-31
HP Pavilion dv6官方拆机.zip
2020-01-30
pytorch-master.zip
2020-01-17
第十届蓝桥杯大赛个人赛省赛(软件类)B组 G,H数据
2020-01-13
图像处理、分析与机器视觉(第四版).pdf
2019-05-30
learning opencv3+make_your_own_neural_network.zip
2019-05-29
toefl og 4th
2019-02-10
矩阵分析(第二版)(中文)Horn+数值分析复习
2019-01-18
Computer Organization and Design RISC-V Edition
2018-06-18
Computer Organization and Design 5th ppt
2018-06-18
数字设计与计算机体系结构(第二版)答案odd_one
2017-10-03
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人