会员
商店
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Grandyang
仰天长啸仗剑红尘,冬去春来寒暑几更...
博客园
首页
新随笔
联系
订阅
管理
随笔 - 1761
文章 - 1
评论 - 4854
阅读 -
1559万
我的随笔
上一页
1
2
3
4
5
6
7
8
9
···
45
下一页
[LeetCode] 1155. Number of Dice Rolls With Target Sum 掷骰子的N种方法
Grandyang 2021-07-08 13:08
阅读:1155
评论:0
推荐:0
编辑
[LeetCode] 1154. Day of the Year 一年中的第几天
Grandyang 2021-07-05 03:54
阅读:375
评论:0
推荐:0
编辑
[LeetCode] 1147. Longest Chunked Palindrome Decomposition 段式回文
Grandyang 2021-07-04 05:01
阅读:596
评论:0
推荐:0
编辑
[LeetCode] 1146. Snapshot Array 快照数组
Grandyang 2021-06-26 14:14
阅读:1455
评论:0
推荐:0
编辑
[LeetCode] 1145. Binary Tree Coloring Game 二叉树着色游戏
Grandyang 2021-06-21 13:30
阅读:784
评论:0
推荐:0
编辑
[LeetCode] 1144. Decrease Elements To Make Array Zigzag 递减元素使数组呈锯齿状
Grandyang 2021-06-21 04:07
阅读:315
评论:0
推荐:0
编辑
[LeetCode] 1140. Stone Game II 石子游戏之二
Grandyang 2021-06-18 12:57
阅读:1726
评论:0
推荐:0
编辑
[LeetCode] 1139. Largest 1-Bordered Square 最大的以1为边界的正方形
Grandyang 2021-06-13 15:47
阅读:527
评论:0
推荐:0
编辑
[LeetCode] 1138. Alphabet Board Path 字母板上的路径
Grandyang 2021-06-11 13:57
阅读:445
评论:0
推荐:0
编辑
[LeetCode] 1137. N-th Tribonacci Number 第N个泰波那契数
Grandyang 2021-06-08 21:59
阅读:704
评论:0
推荐:0
编辑
[LeetCode] 1131. Maximum of Absolute Value Expression 绝对值表达式的最大值
Grandyang 2021-06-07 05:45
阅读:434
评论:0
推荐:0
编辑
[LeetCode] 1130. Minimum Cost Tree From Leaf Values 叶值的最小代价生成树
Grandyang 2021-05-30 07:45
阅读:1124
评论:4
推荐:0
编辑
[LeetCode] 1129. Shortest Path with Alternating Colors 颜色交替的最短路径
Grandyang 2021-05-27 11:56
阅读:910
评论:0
推荐:0
编辑
[LeetCode] 1128. Number of Equivalent Domino Pairs 等价多米诺骨牌对的数量
Grandyang 2021-05-24 02:24
阅读:409
评论:0
推荐:0
编辑
[LeetCode] 1125. Smallest Sufficient Team 最小的必要团队
Grandyang 2021-05-19 11:37
阅读:747
评论:0
推荐:0
编辑
[LeetCode] 1124. Longest Well-Performing Interval 表现良好的最长时间段
Grandyang 2021-05-16 01:22
阅读:700
评论:0
推荐:0
编辑
[LeetCode] 1122. Relative Sort Array 数组的相对排序
Grandyang 2021-05-13 12:32
阅读:621
评论:0
推荐:0
编辑
Gitalk 自动初始化评论
Grandyang 2021-05-12 12:13
阅读:656
评论:0
推荐:0
编辑
[LeetCode] 1111. Maximum Nesting Depth of Two Valid Parentheses Strings 有效括号的嵌套深度
Grandyang 2021-05-09 22:38
阅读:461
评论:0
推荐:0
编辑
[LeetCode] 1110. Delete Nodes And Return Forest 删点成林
Grandyang 2021-05-09 02:33
阅读:1712
评论:0
推荐:0
编辑
[LeetCode] 1109. Corporate Flight Bookings 公司航班预订
Grandyang 2021-05-06 12:25
阅读:784
评论:0
推荐:0
编辑
[LeetCode] 1108. Defanging an IP Address IP地址无效化
Grandyang 2021-05-05 12:48
阅读:585
评论:0
推荐:0
编辑
[LeetCode] 1106. Parsing A Boolean Expression 解析一个布尔型表达式
Grandyang 2021-05-02 06:41
阅读:684
评论:0
推荐:0
编辑
Solve Error: call_and_retry_last allocation failed - javascript heap out of memory
Grandyang 2021-04-26 02:50
阅读:224
评论:0
推荐:0
编辑
[LeetCode] 1105. Filling Bookcase Shelves 填充书架
Grandyang 2021-04-22 15:56
阅读:1097
评论:2
推荐:0
编辑
Solve Issue: http works, but https time out
Grandyang 2021-04-20 16:15
阅读:96
评论:0
推荐:0
编辑
[LeetCode] 1104. Path In Zigzag Labelled Binary Tree 之字形二叉树路径
Grandyang 2021-04-15 15:55
阅读:494
评论:0
推荐:0
编辑
Solve Error: hexo 403 forbidden
Grandyang 2021-04-11 17:18
阅读:215
评论:0
推荐:0
编辑
Solve Error: Run 'hexo g', got 'Killed'
Grandyang 2021-04-11 10:07
阅读:150
评论:0
推荐:0
编辑
[LeetCode] 1103. Distribute Candies to People 给人们发糖果
Grandyang 2021-04-09 16:24
阅读:570
评论:0
推荐:0
编辑
[LeetCode] 1096. Brace Expansion II 花括号展开之二
Grandyang 2021-04-07 14:32
阅读:926
评论:0
推荐:0
编辑
[LeetCode] 1095. Find in Mountain Array 山形数组中查找目标值
Grandyang 2021-04-04 16:10
阅读:847
评论:0
推荐:0
编辑
Solve Error: Console expects a writable stream instance
Grandyang 2021-04-03 15:05
阅读:871
评论:0
推荐:0
编辑
Solve Error: Local hexo not found in xxx
Grandyang 2021-04-03 13:56
阅读:172
评论:7
推荐:0
编辑
[LeetCode] 1094. Car Pooling 拼车
Grandyang 2021-04-02 13:04
阅读:1146
评论:1
推荐:0
编辑
[LeetCode] 1093. Statistics from a Large Sample 大样本统计
Grandyang 2021-04-01 15:33
阅读:519
评论:0
推荐:0
编辑
[LeetCode] 1092. Shortest Common Supersequence 最短公共超序列
Grandyang 2021-03-30 15:44
阅读:1154
评论:0
推荐:0
编辑
[LeetCode] 1091. Shortest Path in Binary Matrix 二进制矩阵中的最短路径
Grandyang 2021-03-29 03:52
阅读:2106
评论:0
推荐:0
编辑
[LeetCode] 1090. Largest Values From Labels 标签中的最大价值
Grandyang 2021-03-28 14:59
阅读:782
评论:0
推荐:0
编辑
[LeetCode] 1089. Duplicate Zeros 复写零
Grandyang 2021-03-28 12:30
阅读:1071
评论:0
推荐:0
编辑
上一页
1
2
3
4
5
6
7
8
9
···
45
下一页
公告
网页版APP,欢迎使用~
grandyang.com
Github同步地址,欢迎star❤️
github.com/grandyang/leetcode
欢迎使用本博客的 Chrome/Edge 插件【Grandyang Blogs】~
Chrome版本
Edge版本
搜索【shua2sum】或扫描二维码关注微信公众号【刷尽天下】
使用方法:
- 回复数字【0】随机推送一道题。
- 回复区间【1 - 1350】内任意数字推送对应的题目。
- 回复关键字 例如【Two Sum】推送对应的题目。
- 回复【all】推送题目汇总列表。
- 回复【other】推送相关总结帖。
- 回复任意文字跟博主留言交流^ . ^
喜欢本博客可以请博主喝杯咖啡~
https://www.buymeacoffee.com/grandyang
微信打赏
Venmo 打赏
昵称:
Grandyang
园龄:
13年
粉丝:
1360
关注:
36
+加关注
<
2025年3月
>
日
一
二
三
四
五
六
23
24
25
26
27
28
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
搜索
最新随笔
1.[LeetCode] 1370. Increasing Decreasing String 上升下降字符串
2.[LeetCode] 1368. Minimum Cost to Make at Least One Valid Path in a Grid 使网格图至少有一条有效路径的最小代价
3.[LeetCode] 1367. Linked List in Binary Tree 二叉树中的链表
4.[LeetCode] 1366. Rank Teams by Votes 通过投票对团队排名
5.[LeetCode] 1365. How Many Numbers Are Smaller Than the Current Number 有多少小于当前数字的数字
6.[LeetCode] 1363. Largest Multiple of Three 形成三的最大倍数
7.[LeetCode] 1362. Closest Divisors 最接近的因数
8.[LeetCode] 1361. Validate Binary Tree Nodes 验证二叉树
9.[LeetCode] 1360. Number of Days Between Two Dates 日期之间隔几天
10.[LeetCode] 1359. Count All Valid Pickup and Delivery Options 有效的快递序列数目
积分与排名
积分 - 3764822
排名 - 26
随笔分类
.Net Core(1)
3D Visualization(12)
Algorithms(8)
Amazon Web Service(13)
C/C++, Java, Python(35)
CareerCup(150)
CUDA/OpenCL(1)
Digital Image Processing(3)
Entertainment(6)
GTK+/VTK/ITK/FLTK(20)
Hexo(8)
IOS(7)
LaTex(3)
LeetCode(1208)
LintCode(101)
MatLab(10)
Maya / 3ds Max(10)
MySQL(2)
Node.js / JavaScript(10)
OpenCV(37)
Point Grey Research(11)
Qt(49)
React / Material UI(2)
Software/Tools(6)
Useful Links(34)
更多
随笔档案
2025年1月(1)
2024年12月(1)
2024年8月(1)
2024年7月(1)
2024年5月(1)
2024年1月(1)
2023年12月(1)
2023年11月(3)
2023年10月(4)
2023年9月(2)
2023年8月(1)
2023年7月(1)
2023年6月(4)
2023年5月(3)
2023年4月(4)
2023年3月(3)
2023年2月(4)
2023年1月(4)
2022年12月(2)
2022年11月(2)
2022年10月(3)
2022年9月(4)
2022年8月(4)
2022年7月(3)
2022年6月(7)
2022年5月(7)
2022年4月(6)
2022年3月(5)
2022年2月(1)
2022年1月(4)
2021年12月(8)
2021年11月(8)
2021年10月(15)
2021年9月(11)
2021年8月(19)
2021年7月(14)
2021年6月(8)
2021年5月(12)
2021年4月(13)
2021年3月(26)
2021年2月(29)
2021年1月(25)
2020年12月(24)
2020年11月(3)
2020年10月(1)
2020年9月(1)
2020年8月(3)
2020年7月(4)
2020年6月(4)
2020年5月(5)
2020年4月(5)
2020年3月(3)
2020年2月(5)
2020年1月(3)
2019年12月(2)
2019年11月(4)
2019年10月(9)
2019年9月(8)
2019年8月(10)
2019年7月(8)
2019年6月(13)
2019年5月(16)
2019年4月(14)
2019年3月(10)
2019年2月(12)
2019年1月(10)
2018年12月(8)
2018年11月(19)
2018年10月(9)
2018年9月(6)
2018年8月(8)
2018年7月(11)
2018年6月(10)
2018年5月(11)
2018年4月(13)
2018年3月(15)
2018年2月(14)
2018年1月(17)
2017年12月(12)
2017年11月(16)
2017年10月(29)
2017年9月(21)
2017年8月(10)
2017年7月(12)
2017年6月(21)
2017年5月(26)
2017年4月(18)
2017年3月(22)
2017年2月(23)
2017年1月(13)
2016年12月(26)
2016年11月(30)
2016年10月(30)
2016年9月(24)
2016年8月(40)
2016年7月(31)
2016年6月(33)
2016年5月(30)
2016年4月(70)
2016年3月(32)
2016年2月(32)
2016年1月(25)
2015年12月(3)
2015年11月(36)
2015年10月(43)
2015年9月(51)
2015年8月(46)
2015年7月(45)
2015年6月(29)
2015年5月(28)
2015年4月(42)
2015年3月(55)
2015年2月(61)
2015年1月(27)
2014年12月(8)
2014年11月(27)
2014年10月(34)
2014年9月(5)
更多
阅读排行榜
1. LeetCode All in One 题目讲解汇总(持续更新中...)(1311995)
2. [LeetCode] 1. Two Sum 两数之和(160279)
3. [LeetCode] 15. 3Sum 三数之和(96399)
4. Manacher's Algorithm 马拉车算法(86689)
5. Qt qDebug() 的使用方法(83832)
6. [LeetCode] 4. Median of Two Sorted Arrays 寻找两个正序数组的中位数(81551)
7. [LeetCode] 5. Longest Palindromic Substring 最长回文子串(80923)
8. [LeetCode] 3. Longest Substring Without Repeating Characters 无重复字符的最长子串(69014)
9. [LeetCode] 10. Regular Expression Matching 正则表达式匹配(60722)
10. [LeetCode] 253. Meeting Rooms II 会议室之二(56206)
评论排行榜
1. LeetCode All in One 题目讲解汇总(持续更新中...)(156)
2. [LeetCode] 4. Median of Two Sorted Arrays 寻找两个正序数组的中位数(40)
3. Manacher's Algorithm 马拉车算法(36)
4. [FlyCapture2] Bumblebee XB3 Save Images to Three AVI Files (Left, Center and Right) 大黄蜂立体相机保存捕获的视频到左中右三个不同的文件(35)
5. LeetCode Binary Search Summary 二分搜索法小结(32)
推荐排行榜
1. LeetCode All in One 题目讲解汇总(持续更新中...)(116)
2. Manacher's Algorithm 马拉车算法(23)
3. [LeetCode] 1. Two Sum 两数之和(14)
4. Reward List 赏金列表(8)
5. [LeetCode] 94. Binary Tree Inorder Traversal 二叉树的中序遍历(8)
最新评论
1. Re:[LeetCode] 9. Palindrome Number 验证回文数字
那要是x=101101呢用的第一种方法
--yang__sir
2. Re:[LeetCode] 772. Basic Calculator III 基本计算器之三
@howard144 prevP是什么...
--liang302
3. Re:[LeetCode] 1072. Flip Columns For Maximum Number of Equal Rows 按列翻转得到最大值等行数
若直接将两行编码成 "01" 和 "10",并不能达到统计的效果 这里可以加一句"为了让1010..0 与0101..1是同样的形式,这样change之后结果才能把11111和00000的算作一种,即...
--Cu3S
4. Re:[LeetCode] 1072. Flip Columns For Maximum Number of Equal Rows 按列翻转得到最大值等行数
而对于例子3,后两行经过翻转后可以变为相同的行, 这句话改成 通过翻转最后一列可以让后两行都变成“同一行的元素完全一样”的形式。更合适吧,不然太容易有误导性了,当然结合题目不会有人像我一样撒敷敷的把 ...
--Cu3S
5. Re:[LeetCode] 1072. Flip Columns For Maximum Number of Equal Rows 按列翻转得到最大值等行数
这里省略了最重要的证明部分,即“两个pattern相同的行,最后一定能转换成全部元素都一样的行”。 直接从case3也能看懂,但是博主没提这一点,以及思路为何是正确的,倒像是在解说别人的代码还不得要领...
--Cu3S
喜欢请打赏
Venmo
微信
公告
扫描二维码打赏
Venmo 打赏
查看赏金列表
点击右上角即可分享