02 2024 档案
摘要:原题链接在这里:https://leetcode.com/problems/buildings-with-an-ocean-view/description/题目: There are n buildings in a line. You are given an integer array hei
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/check-if-a-parentheses-string-can-be-valid/description/题目: A parentheses string is a non-empty string consisting
阅读全文
公告
搜索
随笔档案
- 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. 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!.
- --肥耳朵猫猫