Consider an angle. At the point the lines originate the distance between them is fairly small. Extrapolate those lines and the further you get away from the originating point the distance between those lines grows. Nudge one line out further and the distance grows, negligible at first but the further away from that center point the distance is even greater.
💻 Come and Have A Code Day
📖 Each Day 1 + (1), 1 from BinarySearch for Compulsory, (1) from LeetCode for Optional
🎯 Each Week 4 in 10 minutes, pick 4 of 7 problems Randomly that week for review
🔖 Template document for Problems and Solutions
📋 Problems Table Click to Jump To the Latest
🗡️ 剑指Offer
ID | Description | Solution | Level | Date |
---|---|---|---|---|
BS-1 | Sum of Two Numbers | Cpp/Python | # Easy | Mon 25 Apr 2022 |
LC-398 | 随机数索引 | Cpp/Python | # Medium | Mon 25 Apr 2022 |
BS-5 | Palindromic Integer | Cpp/Python | # Easy | Tue 26 Apr 2022 |
LC-883 | 三维形体投影面积 | Cpp/Python | # Easy | Tue 26 Apr 2022 |
BS-16 | 3-6-9 | Cpp/Python | # Easy | Wed 27 Apr 2022 |
LC-417 | 太平洋大西洋水流问题 | Cpp/Python | #Medium | Wed 27 Apr 2022 |
BS-18 | Run-Length Encoding | Cpp/Python | # Easy | Thu 28 Apr 2022 |
LC-905 | 按奇偶排序数组 | Cpp/Python | # Easy | Thu 28 Apr 2022 |
BS-19 | Strictly Increasing or Strictly Decreasing | Cpp/Python | # Easy | Fri 29 Apr 2022 |
LC-427 | 建立四叉树 | Cpp/Python | # Medium | Fri 29 Apr 2022 |
BS-20 | Largest Number By Two Times | Cpp/Python | # Easy | Sat 30 Apr 2022 |
LC-908 | 最小差值 I | Cpp/Python | # Easy | Sat 30 Apr 2022 |
BS-24 | Generate Primes | Cpp/Python | # Easy | Sun 01 May 2022 |
LC-1305 | 两棵二叉搜索树中的所有元素 | Cpp/Python | # Medium | Sun 01 May 2022 |
BS-28 | A Unique String | Cpp/Python | # Easy | Mon 02 May 2022 |
LC-591 | 标签验证器 | Cpp | # Hard | Mon 02 May 2022 |
BS-29 | Compress String | Cpp/Python | # Easy | Tue 03 May 2022 |
LC-937 | 重新排列日志文件 | Cpp/Python | # Easy | Tue 03 May 2022 |
BS-30 | Rotation of Another String | Cpp/Python | # Easy | Wed 04 May 2022 |
LC-1823 | 找出游戏的获胜者 | Cpp/Python | # Medium | Wed 04 May 2022 |
BS-39 | Length of a Linked List | Cpp | # Easy | Thu 05 May 2022 |
LC-713 | 乘积小于 K 的子数组 | Cpp | # Medium | Thu 05 May 2022 |
BS-61 | Recurring Character | Cpp | # Easy | Fri 06 May 2022 |
LC-933 | 最近的请求次数 | Cpp | # Easy | Fri 06 May 2022 |
BS-79 | Merging Two Sorted Lists | Cpp | # Easy | Sat 07 May 2022 |
LC-433 | 最小基因变化 | Cpp | # Medium | Sat 07 May 2022 |
BS-97 | Check Palindrome | Cpp | # Easy | Sun 08 May 2022 |
LC-442 | 数组中重复的数据 | Cpp | # Medium | Sun 08 May 2022 |
BS-107 | Check Power of Two | Cpp | # Easy | Mon 09 May 2022 |
LC-942 | 增减字符串匹配 | Cpp | # Easy | Mon 09 May 2022 |
BS-57 | Wolf of Wall Street | Cpp | # Easy | Tue 10 May 2022 |
LC-1728 | 猫和老鼠 II | # Hard | Tue 10 May 2022 | |
BS-85 | Sum of the Digits | Cpp | # Easy | Wed 11 May 2022 |
LC-499 | 序列化和反序列化二叉搜索树 | Cpp | # Medium | Wed 11 May 2022 |
BS-93 | A Strictly Increasing Linked List | Cpp | # Easy | Thu 12 May 2022 |
LC-944 | 删列造序 | Cpp | # Easy | Thu 12 May 2022 |
BS-58 | High Frequency | Cpp | # Easy | Fri 13 May 2022 |
LC-01.05 | 一次编辑 | Cpp | # Medium | Fri 13 May 2022 |
BS-96 | Interleaved String | Cpp | # Easy | Sat 14 May 2022 |
LC-691 | 贴纸拼词 | # Hard | Sat 14 May 2022 | |
BS-102 | Longest Consecutive Duplicate String | Cpp | # Easy | Sun 15 May 2022 |
LC-812 | 最大三角形面积 | Cpp | # Easy | Sun 15 May 2022 |
BS-121 | Repeated Addition | Cpp | # Easy | Mon 16 May 2022 |
LC-0406 | 后继者 | Cpp | # Medium | Mon 16 May 2022 |
BS-43 | Rotate List Left by K | Cpp | # Easy | Tue 17 May 2022 |
LC-953 | 验证外星语词典 | Cpp | # Easy | Tue 17 May 2022 |
BS-98 | Anagram Checks | Cpp | # Easy | Wed 18 May 2022 |
LC-668 | 乘法表中第k小的数 | Cpp | # Hard | Wed 18 May 2022 |
BS-135 | Transpose of a Matrix | Cpp | # Easy | Thu 19 May 2022 |
LC-462 | 最少移动次数使数组元素相等 II | Cpp | # Medium | Thu 19 May 2022 |
BS-146 | Unix Path Resolution | Cpp | # Easy | Fri 20 May 2022 |
LC-436 | 寻找右区间 | Cpp | # Medium | Fri 20 May 2022 |
BS-139 | Consecutive Duplicates | Cpp | # Easy | Sat 21 May 2022 |
LC-961 | 在长度 2N 的数组中找出重复 N 次的元素 | Cpp | # Easy | Sat 21 May 2022 |
BS-147 | Linked List to Integer | Cpp | # Easy | Sun 22 May 2022 |
LC-464 | 我能赢吗 | Cpp | # Medium | Sun 22 May 2022 |
BS-60 | Square of a List | Cpp | # Easy | Mon 23 May 2022 |
LC-675 | 为高尔夫比赛砍树 | Cpp | # Hard | Mon 23 May 2022 |
BS-108 | Number of Bits | Cpp | # Easy | Tue 24 May 2022 |
LC-965 | 单值二叉树 | Cpp | # Easy | Tue 24 May 2022 |
BS-55 | Nth Fibonacci Number | Cpp | # Easy | Wed 25 May 2022 |
LC-467 | 环绕字符串中唯一的子字符串 | Cpp | # Medium | Wed 25 May 2022 |
BS-233 | Roomba | Cpp | # Easy | Thu 26 May 2022 |
LC-699 | 掉落的方块 | # Hard | Thu 26 May 2022 | |
BS-109 | List Min Replacement | Cpp | # Easy | Fri 27 May 2022 |
LC-01711 | 单词距离 | Cpp | # Medium | Fri 27 May 2022 |
BS-100 | Max Product of Two Numbers | Cpp | # Easy | Sat 28 May 2022 |
LC-1021 | 删除最外层的括号 | Cpp | # Easy | Sat 28 May 2022 |
BS-124 | Pascal's Triangle | Cpp | # Easy | Sun 29 May 2022 |
LC-468 | 验证IP地址 | Cpp | # Medium | Sun 29 May 2022 |
BS-133 | Collatz Sequence | Cpp | # Easy | Mon 30 May 2022 |
LC-1022 | 从根到叶的二进制数之和 | Cpp | # Easy | Mon 30 May 2022 |
BS-137 | Integer to Base 3 | Cpp | # Easy | Tue 31 May 2022 |
lc-JZ114 | 外星文字典 | # Hard | Tue 31 May 2022 | |
BS-141 | Toeplitz Matrix | Cpp | # Easy | Wed 01 Jun 2022 |
LC-473 | 火柴拼正方形 | Cpp | # Medium | Wed 01 Jun 2022 |
BS-151 | Hamming Distance | Cpp | # Easy | Thu 02 Jun 2022 |
LC-450 | 删除二叉搜索树中的节点 | # Medium | Thu 02 Jun 2022 | |
BS-153 | Sorted Elements | Cpp | # Easy | Fri 03 Jun 2022 |
LC-829 | 连续整数求和 | Cpp | # Hard | Fri 03 Jun 2022 |
BS-156 | Column Sort | Cpp | # Easy | Sat 04 Jun 2022 |
LC-929 | 独特的电子邮件地址 | Cpp | # Easy | Sat 04 Jun 2022 |
BS-171 | Reverse Words | Cpp | # Easy | Sun 05 Jun 2022 |
LC-478 | 在圆内随机生成点 | Cpp | # Medium | Sun 05 Jun 2022 |
BS-188 | Odd Number of Digits | Cpp | # Easy | Mon 06 Jun 2022 |
LC-732 | 我的日程安排表 III | Cpp | # Hard | Mon 06 Jun 2022 |
BS-178 | Minimum Bracket Addition | Cpp | # Easy | Tue 07 Jun 2022 |
LC-875 | 爱吃香蕉的珂珂 | Cpp | # Medium | Tue 07 Jun 2022 |
BS-192 | Swap Characters to Equalize Strings | Cpp | # Easy | Wed 08 Jun 2022 |
LC-1037 | 有效的回旋镖 | Cpp | # Easy | Wed 08 Jun 2022 |
BS-194 | Text Editor | Cpp | # Easy | Thu 09 Jun 2022 |
LC-497 | 非重叠矩形中的随机点 | Cpp | # Medium | Thu 09 Jun 2022 |
BS-195 | Seat Arrangement | Cpp | # Easy | Fri 10 Jun 2022 |
LC-730 | 统计不同回文子序列 | # Hard | Fri 10 Jun 2022 | |
BS-215 | Happy Numbers | Cpp | # Easy | Sat 11 Jun 2022 |
LC-926 | 将字符串翻转到单调递增 | Cpp | # Medium | Sat 11 Jun 2022 |
BS-224 | Pythagorean Triplets | Cpp | # Easy | Sun 12 Jun 2022 |
LC-890 | 查找和替换模式 | Cpp | # Medium | Sun 12 Jun 2022 |
BS-256 | Common Words | Cpp | # Easy | Mon 13 Jun 2022 |
LC-1051 | 高度检查器 | Cpp | # Easy | Mon 13 Jun 2022 |
BS-273 | A Number and Its Triple | Cpp | # Easy | Tue 14 Jun 2022 |
LC-498 | 对角线遍历 | Cpp | # Medium | Tue 14 Jun 2022 |
BS-266 | Buying Cars | Cpp | # Easy | Wed 15 Jun 2022 |
LC-719 | 找出第 K 小的数对距离 | # Hard | Wed 15 Jun 2022 | |
BS-274 | Equivalent Value and Frequency | Cpp | # Easy | Thu 16 Jun 2022 |
LC-532 | 数组中的 k-diff 数对 | Cpp | # Medium | Thu 16 Jun 2022 |
BS-279 | String Isomorphism | Cpp | # Easy | Fri 17 Jun 2022 |
LC-1089 | 复写零 | Cpp | # Easy | Fri 17 Jun 2022 |
ID | Description | Solution | Level | Date |
---|---|---|---|---|
Offer-03 | 剑指 Offer 03. 数组中重复的数字 | # Easy | Tue 10 May 2022 | |
Offer-04 | 剑指 Offer 04. 二维数组中的查找 | # Medium | Tue 10 May 2022 |
ID | Description | Solution | Tag | Date |
---|---|---|---|---|
TBC | TBC | TBC | TBC | TBC |
ID | Description | Date |
---|---|---|
1 | No Pwd SSH | Mon 25 Apr 2022 |
Last Modify: Fri 17 Jun 2022 02:18:41 PM CST