会员
商店
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Grandyang
仰天长啸仗剑红尘,冬去春来寒暑几更...
博客园
首页
新随笔
联系
订阅
管理
随笔 - 1761
文章 - 1
评论 - 4854
阅读 -
1559万
我的随笔
上一页
1
2
3
4
5
6
7
8
···
45
下一页
[LeetCode] 1223. Dice Roll Simulation 掷骰子模拟
Grandyang 2021-09-23 12:21
阅读:835
评论:0
推荐:0
编辑
Visual Studio Code Debug C++ on Mac
Grandyang 2021-09-20 11:03
阅读:673
评论:0
推荐:0
编辑
[LeetCode] 1222. Queens That Can Attack the King 可以攻击国王的皇后
Grandyang 2021-09-17 23:53
阅读:392
评论:0
推荐:0
编辑
[LeetCode] 1221. Split a String in Balanced Strings 分割平衡字符串
Grandyang 2021-09-13 23:22
阅读:669
评论:0
推荐:0
编辑
[LeetCode] 1220. Count Vowels Permutation 统计元音字母序列的数目
Grandyang 2021-09-12 11:18
阅读:604
评论:0
推荐:0
编辑
[LeetCode] 1219. Path with Maximum Gold 黄金矿工
Grandyang 2021-09-10 12:54
阅读:702
评论:0
推荐:0
编辑
Solve VsVim Issue with Visual Studio for Mac: ClosePair(')')
Grandyang 2021-09-10 09:55
阅读:141
评论:1
推荐:0
编辑
[LeetCode] 1218. Longest Arithmetic Subsequence of Given Difference 最长定差子序列
Grandyang 2021-09-08 12:14
阅读:580
评论:0
推荐:1
编辑
[LeetCode] 1217. Minimum Cost to Move Chips to The Same Position 玩筹码
Grandyang 2021-09-05 02:39
阅读:460
评论:0
推荐:0
编辑
[LeetCode] 1210. Minimum Moves to Reach Target with Rotations 穿过迷宫的最少移动次数
Grandyang 2021-09-04 11:09
阅读:525
评论:0
推荐:0
编辑
[LeetCode] 1209. Remove All Adjacent Duplicates in String II 移除字符串中所有相邻的重复字符之二
Grandyang 2021-08-31 23:51
阅读:945
评论:0
推荐:0
编辑
[.Net Core] Visual Studio for Mac Add Client Side Library
Grandyang 2021-08-31 13:02
阅读:214
评论:0
推荐:0
编辑
[LeetCode] 1208. Get Equal Substrings Within Budget 尽可能使字符串相等
Grandyang 2021-08-29 02:55
阅读:450
评论:0
推荐:0
编辑
[LeetCode] 1207. Unique Number of Occurrences 独一无二的出现次数
Grandyang 2021-08-29 02:05
阅读:663
评论:0
推荐:0
编辑
[LeetCode] 1206. Design Skiplist 设计跳跃链表
Grandyang 2021-08-28 09:09
阅读:700
评论:0
推荐:0
编辑
[LeetCode] 1203. Sort Items by Groups Respecting Dependencies 项目管理
Grandyang 2021-08-25 23:14
阅读:598
评论:0
推荐:0
编辑
[LeetCode] 1202. Smallest String With Swaps 交换字符串中的元素
Grandyang 2021-08-23 07:24
阅读:1089
评论:0
推荐:0
编辑
[LeetCode] 1201. Ugly Number III 丑陋数之三
Grandyang 2021-08-22 07:18
阅读:639
评论:0
推荐:0
编辑
[LeetCode] 1200. Minimum Absolute Difference 最小绝对差
Grandyang 2021-08-19 21:43
阅读:1573
评论:0
推荐:0
编辑
[LeetCode] 1192. Critical Connections in a Network 查找集群内的关键连接
Grandyang 2021-08-19 21:10
阅读:1610
评论:0
推荐:0
编辑
[LeetCode] 1191. K-Concatenation Maximum Sum K次串联后最大子数组之和
Grandyang 2021-08-16 06:13
阅读:463
评论:0
推荐:0
编辑
[LeetCode] 1190. Reverse Substrings Between Each Pair of Parentheses 反转每对括号间的子串
Grandyang 2021-08-15 04:48
阅读:621
评论:0
推荐:0
编辑
[LeetCode] 1189. Maximum Number of Balloons 气球的最大数量
Grandyang 2021-08-12 23:10
阅读:501
评论:0
推荐:0
编辑
[LeetCode] 1187. Make Array Strictly Increasing 使数组严格递增
Grandyang 2021-08-11 12:13
阅读:806
评论:0
推荐:0
编辑
[LeetCode] 1186. Maximum Subarray Sum with One Deletion 删除一次得到子数组最大和
Grandyang 2021-08-09 01:37
阅读:669
评论:0
推荐:0
编辑
[LeetCode] 1185. Day of the Week 一周中的第几天
Grandyang 2021-08-08 02:25
阅读:617
评论:0
推荐:0
编辑
[LeetCode] 1184. Distance Between Bus Stops 公交站间的距离
Grandyang 2021-08-05 21:51
阅读:442
评论:0
推荐:0
编辑
[LeetCode] 1178. Number of Valid Words for Each Puzzle 猜字谜
Grandyang 2021-08-03 21:41
阅读:681
评论:0
推荐:0
编辑
[LeetCode] 1177. Can Make Palindrome from Substring 构建回文串检测
Grandyang 2021-08-02 10:23
阅读:469
评论:0
推荐:0
编辑
[LeetCode] 1175. Prime Arrangements 质数排列
Grandyang 2021-07-31 21:36
阅读:485
评论:0
推荐:0
编辑
[LeetCode] 1172. Dinner Plate Stacks 餐盘栈
Grandyang 2021-07-29 22:43
阅读:388
评论:0
推荐:0
编辑
[LeetCode] 1171. Remove Zero Sum Consecutive Nodes from Linked List 从链表中删去总和值为零的连续节点
Grandyang 2021-07-27 21:55
阅读:829
评论:0
推荐:0
编辑
[LeetCode] 1170. Compare Strings by Frequency of the Smallest Character 比较字符串最小字母出现频次
Grandyang 2021-07-26 03:03
阅读:350
评论:0
推荐:0
编辑
[LeetCode] 1169. Invalid Transactions 查询无效交易
Grandyang 2021-07-22 22:58
阅读:639
评论:1
推荐:0
编辑
[LeetCode] 1163. Last Substring in Lexicographical Order 按字典序排在最后的子串
Grandyang 2021-07-21 23:01
阅读:501
评论:0
推荐:0
编辑
[LeetCode] 1162. As Far from Land as Possible 地图分析
Grandyang 2021-07-20 22:27
阅读:901
评论:0
推荐:0
编辑
[LeetCode] 1161. Maximum Level Sum of a Binary Tree 最大层内元素和
Grandyang 2021-07-17 09:43
阅读:421
评论:0
推荐:0
编辑
[LeetCode] 1160. Find Words That Can Be Formed by Characters 拼写单词
Grandyang 2021-07-15 09:27
阅读:366
评论:0
推荐:0
编辑
[LeetCode] 1157. Online Majority Element In Subarray 子数组中占绝大多数的元素
Grandyang 2021-07-14 13:21
阅读:495
评论:0
推荐:0
编辑
[LeetCode] 1156. Swap For Longest Repeated Character Substring 单字符重复子串的最大长度
Grandyang 2021-07-09 23:25
阅读:728
评论:0
推荐:0
编辑
上一页
1
2
3
4
5
6
7
8
···
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 题目讲解汇总(持续更新中...)(1312010)
2. [LeetCode] 1. Two Sum 两数之和(160280)
3. [LeetCode] 15. 3Sum 三数之和(96399)
4. Manacher's Algorithm 马拉车算法(86692)
5. Qt qDebug() 的使用方法(83832)
6. [LeetCode] 4. Median of Two Sorted Arrays 寻找两个正序数组的中位数(81552)
7. [LeetCode] 5. Longest Palindromic Substring 最长回文子串(80923)
8. [LeetCode] 3. Longest Substring Without Repeating Characters 无重复字符的最长子串(69015)
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 打赏
查看赏金列表
点击右上角即可分享