会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Dylan_Java_NYC
博客园
首页
新随笔
联系
订阅
管理
随笔 - 1033
文章 - 0
评论 - 4
阅读 -
40万
我的标签
排序:
自定义
|
博文数⬇
|
标签名
LeetCode
(988)
Bit Manipulation
(33)
Interview
(7)
Monotonic Queue
(2)
Array
(206)
Recursion
(30)
Topological Sort
(6)
Interactive
(2)
DP
(153)
Sliding Window
(24)
TreeSet
(5)
Hash Function
(2)
String
(151)
Union Find
(22)
Segment Tree
(5)
Geometry
(2)
Tree
(135)
Matrix
(18)
Minimax
(5)
Dijkstra
(2)
DFS
(127)
Trie
(16)
Comparator
(5)
Data Stream
(2)
HashMap
(103)
LintCode
(14)
KMP
(4)
Union
(1)
BFS
(75)
Monotonic Stack
(13)
Interval
(4)
System Design
(1)
Math
(72)
Divide and Conquer
(13)
Deque
(4)
Shortest Path
(1)
Two Pointers
(71)
BST
(13)
Bucket
(4)
Rejection Sampling
(1)
Greedy
(57)
Java
(12)
Binary Indexed Tree
(4)
Quick Sort
(1)
Stack
(55)
Sorting
(11)
Random
(3)
JavaScript
(1)
Binary Search
(53)
Queue
(10)
Quick Select
(3)
Hash Code
(1)
Design
(47)
Prefix Sum
(10)
NP
(3)
Eulerian
(1)
Backtracking
(46)
HashSet
(10)
Memoization
(3)
Enumeration
(1)
Linked List
(44)
TreeMap
(9)
C#
(3)
Combinatorics
(1)
Heap
(38)
Counting
(9)
Rolling Hash
(2)
Brainteaser
(1)
Sort
(36)
Concurrency
(8)
Reservoir Sampling
(2)
Graph
(36)
Simulation
(7)
Morris
(2)
公告
昵称:
Dylan_Java_NYC
园龄:
9年5个月
粉丝:
9
关注:
1
+加关注
搜索
常用链接
我的随笔
我的评论
我的参与
最新评论
我的标签
我的标签
LeetCode
(988)
Array
(206)
DP
(153)
String
(151)
Tree
(135)
DFS
(127)
HashMap
(103)
BFS
(75)
Math
(72)
Two Pointers
(71)
更多
随笔档案
2024年11月(1)
2024年10月(1)
2024年8月(17)
2024年7月(9)
2024年6月(10)
2024年5月(16)
2024年4月(16)
2024年3月(11)
2024年2月(2)
2023年2月(1)
2022年10月(16)
2022年9月(8)
2022年8月(26)
2022年7月(15)
2022年6月(18)
2022年5月(4)
2022年4月(4)
2021年3月(2)
2020年5月(1)
2020年3月(10)
2020年2月(19)
2020年1月(33)
2019年12月(68)
2019年11月(46)
2019年10月(5)
2019年9月(20)
2019年8月(31)
2019年7月(15)
2019年6月(22)
2018年10月(2)
2018年9月(4)
2018年8月(1)
2018年7月(3)
2018年3月(1)
2018年2月(8)
2018年1月(18)
2017年12月(5)
2017年11月(13)
2017年10月(36)
2017年9月(48)
2017年8月(2)
2017年6月(10)
2017年4月(12)
2017年3月(11)
2017年2月(25)
2017年1月(36)
2016年12月(7)
2016年11月(2)
2016年10月(2)
2016年9月(2)
2016年8月(3)
2016年4月(5)
2016年3月(43)
2016年2月(25)
2016年1月(13)
2015年12月(5)
2015年11月(29)
2015年10月(57)
2015年9月(99)
2015年8月(51)
2015年7月(8)
更多
阅读排行榜
1. LeetCode 1152. Analyze User Website Visit Pattern(5101)
2. LeetCode 1102. Path With Maximum Minimum Value(3986)
3. LeetCode 1135. Connecting Cities With Minimum Cost(3625)
4. LeetCode 1153. String Transforms Into Another String(2993)
5. LeetCode 1099. Two Sum Less Than K(2561)
评论排行榜
1. LeetCode 1197. Minimum Knight Moves(3)
2. LeetCode 958. Check Completeness of a Binary Tree(1)
最新评论
1. Re:LeetCode 1197. Minimum Knight Moves
@Gavin_Huang For example, to reach (1,1) from (0, 0), the best way is to get (2, -1) or (-1, 2) firs...
--CNoodle
2. Re:LeetCode 1197. Minimum Knight Moves
@Gavin_Huang 四个象限都是对称的,比如你举得例子-23, -123如果能到这个位置和到第一象限的23, 123是相同的最小步数。所以为了节省BFS的时间,只看第一象限,在最开始已经取过绝对...
--Dylan_Java_NYC
3. Re:LeetCode 1197. Minimum Knight Moves
还是没太懂 i>=-1 && j>=-1 。 万一这x,y是在比如-23,-123, 也就是第四象限,i>=-1 && j>=-1 放在那里不正好与正确答案走反方向了吗? 😭...
--Gavin_Huang
4. Re:LeetCode 958. Check Completeness of a Binary Tree
brilliant!.
--肥耳朵猫猫
点击右上角即可分享