LeetCode 从零单刷个人笔记整理(持续更新)

这是一篇关于作者个人刷LeetCode的笔记整理,截至2020.2.23已更新,详细记录了每道题的题号、链接、难度以及个人评分。博主采用多种解题方法并进行优化,还给出了部分解题博文链接。文章旨在记录和巩固知识点,同时也对题目难度进行了个人评分,评分标准基于优化算法的难度。未记录和评分的题目主要是简单或重复方法的题目。
摘要由CSDN通过智能技术生成

更新至2020.2.23

github:https://github.com/ChopinXBP/LeetCode-Babel


本人博客用于个人对知识点的记录和巩固。

用几乎所有可行的方法进行了实现和调优

下面每一道刷过的LeetCode题目附上了题号(ID列)、链接(Problem列)、官网难度评价(Difficulty列),对于已经更新的博文还会附上解题博文的链接(Note列)以及该题个人评分(Score列)

1.个人评分依据优化难度分(优化难度指的是写出考虑周全且复杂度降至最低的算法的难度,决定题目难度上限),评价基线为刷这道题的入门平均水平,满分10分,梯度为1分。

2.部分题目还未记录和评分,对于过于简单或方法重复的题目不再记录。

3.Score列说明:D为数据库类型题,S为Shell类型题,C为多线程类型题。


Easy Medium Hard Total
137 177 42 356

Idx ID Problem Note Date Difficulty Score(10)
序号 题号 原题 笔记 完成时间 难度 自评(10)
356 1362 最接近的因数 Closest Divisors 2020.2.23 Medium 5
355 1361 验证二叉树 [Validate Binary Tree Nodes] 2020.2.23 Medium
354 1360 日期之间隔几天 [Number of Days Between Two Dates] 2020.2.23 Easy
353 1358 包含所有三种字符的子字符串数目 Number of Substrings Containing All Three Characters 2020.2.22 Medium 5
352 1357 每隔n个顾客打折 Apply Discount Every n Orders 2020.2.22 Medium 3
351 1356 根据数字二进制下1的数目排序 Sort Integers by The Number of 1 Bits 2020.2.22 Easy 4
350 404 左叶子之和 Sum of Left Leaves 2020.2.22 Easy 4
349 401 二进制手表 [Binary Watch] 2020.1.30 Easy
348 1319 连通网络的操作次数 [Number of Operations to Make Network Connected] 2020.1.12 Medium
347 1318 或运算的最小翻转次数 Minimum Flips to Make a OR b Equal to c 2020.1.12 Medium 3
346 1317 将整数转换为两个无零整数的和 Convert Integer to the Sum of Two No-Zero Integers 2020.1.12 Easy 3
345 392 判断子序列 Is Subsequence 2020.1.10 Easy 3
344 389 找不同 Find the Difference 2020.1.10 Easy 3
343 383 赎金信 Ransom Note 2020.1.10 Easy 3
342 1306 跳跃游戏 III Jump Game III 2019.12.29 Medium 3
341 1305 两棵二叉搜索树中的所有元素 All Elements in Two Binary Search Trees 2019.12.29 Medium 3
340 1304 和为零的N个唯一整数 Find N Unique Integers Sum up to Zero 2019.12.29 Easy 3
339 342 4的幂 [Power of Four] 2019.12.27 Easy
338 303 区域和检索-数组不可变 Range Sum Query-Immutable 2019.12.27 Easy
337 1296 子串的最大出现次数 [Maximum Number of Occurrences of a Substring] 2019.12.22 Medium
336 1295 划分数组为连续数字的集合 [Divide Array in Sets of K Consecutive Numbers] 2019.12.22 Medium
335 1294 统计位数为偶数的数字 Find Numbers with Even Number of Digits 2019.12.22 Easy 2
334 299 猜数字游戏 Bulls and Cows 2019.12.19 Easy 3
333 290 单词规律 Word Pattern 2019.12.19 Easy 3
332 601 体育馆的人流量 [Human Traffic of Stadium] 2019.12.19 Hard
331 263 丑数 [Ugly Number] 2019.12.18 Easy
330 262 行程和用户 [Trips and Users] 2019.12.18 Hard
329 258 各位相加 [Add Digits] 2019.12.16 Easy
328 1292 元素和小于等于阈值的正方形的最大边长 [Maximum Side Length of a Square with Sum Less than or Equal to Threshold] 2019.12.15 Medium
327 1291 顺次数 Sequential Digits 2019.12.15 Medium 3
326 1290 二进制链表转整数 Convert Binary Number in a Linked List to Integer 2019.12.15 Easy 3
325 257 二叉树的所有路径 Binary Tree Paths 2019.12.11 Easy 3
324 185 部门工资前三高的所有员工 [Department Top Three Salaries] 2019.12.11 Hard
323 168 Excel表列名称 [Excel Sheet Column Title] 2019.12.10 Easy
322 107 二叉树的层次遍历II Binary Tree Level Order Traversal II 2019.12.10 Easy 3
321 82 删除排序链表中的重复元素II Remove Duplicates from Sorted List II 2019.12.10 Medium 3
320 83 删除排序链表中的重复元素 Remove Duplicates from Sorted List 2019.12.10 Easy 3
319 58 最后一个单词的长度 Length of Last Word 2019.12.10 Easy 3
318 626 换座位 [Exchange Seats] 2019.12.10 Medium
317 1226 哲学家进餐 [The Dining Philosophers] 2019.12.9 Medium
316 184 部门工资最高的员工 [Department Highest Salary] 2019.12.9 Medium
315 1283 使结果不超过阈值的最小除数 Find the Smallest Divisor Given a Threshold 2019.12.8 Medium 5
314 1282 用户分组 Group the People Given the Group Size They Belong To 2019.12.8 Medium 3
313 1281 整数的各位积和之差 Subtract the Product and Sum of Digits of an Integer 2019.12.8 Easy 3
312 1195 交替打印字符串 [Fizz Buzz Multithreaded] 2019.12.4 Medium
311 180 连续出现的数字 [Consecutive Numbers] 2019.12.4 Medium
310 393 UTF-8 编码验证 UTF-8 Validation 2019.12.4 Medium 4
309 35 搜索插入位置 Search Insert Position 2019.12.3 Easy 4
308 178 分数排名 Rank Scores 2019.12.3 Medium D
307 432 全 O(1) 的数据结构 All O`one Data Structure 2019.12.3 Hard 8
306 1117 H2O 生成 Building H2O 2019.12.2 Medium C
305 177 第N高的薪水 Nth Highest Salary 2019.12.2 Medium D
304 354 俄罗斯套娃信封问题 Russian Doll Envelopes 2019.12.2 Hard 10
303 1277 统计全为1的正方形子矩阵 Count Square Submatrices with All Ones 2019.12.1 Medium 7
302 1276 不浪费原料的汉堡制作方案 Number of Burgers with No Waste of Ingredients 2019.12.1 Medium 3
301 1275 找出井字棋的获胜者 Find Winner on a Tic Tac Toe Game 2019.12.1 Easy 3
300 1179 重新格式化部门表 Reformat Department Table 2019.11.30 Easy D
299 120 三角形最小路径和 Triangle 2019.11.30 Medium 7
298 1116 打印零与奇偶数 Print Zero Even Odd 2019.11.29 Medium C
297 627 交换工资 Swap Salary 2019.11.29 Easy D
296 620 有趣的电影 Not Boring Movies 2019.11.29 Easy 3
295 60 第k个排列 Permutation Sequence 2019.11.29 Medium 9
294 1115 交替打印FooBar Print FooBar Alternately 2019.11.28 Medium C
293 596 超过5名学生的课 Classes More Than 5 Students 2019.11.28 Easy D
292 595 大的国家 Big Countries 2019.11.28 Easy D
291 674 最长连续递增序列 Longest Continuous Increasing Subsequence 2019.11.28 Easy 3
290 695 岛屿的最大面积 Max Area of Island 2019.11.28 Medium 3
289 1114 按序打印 Print in Order 2019.11.27 Easy C
288 197 上升的温度 Rising Temperature 2019.11.26 Easy D
287 196 删除重复的电子邮箱 Delete Duplicate Emails 2019.11.26 Easy D
286 194 转置文件 Transpose File 2019.11.24
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值