每日一題,有益身心健康。
歡迎加入Discord群一起討論。

因為HackMD單篇有字數限制,2023/8/11之後開始更新至每日一題

日期

2022/11

題目列表
日期 題目
11/21 1926. Nearest Exit from Entrance in Maze
11/22 279. Perfect Squares
11/23 36. Valid Sudoku
148. Sort List
409. Longest Palindrome
11/24 79. Word Search
11/25 907. Sum of Subarray Minimums
687. Longest Univalue Path
11/26 1235. Maximum Profit in Job Scheduling
11/27 446. Arithmetic Slices II - Subsequence
11/28 2225. Find Players With Zero or One Losses
11/29 380. Insert Delete GetRandom O(1)
11/30 1207. Unique Number of Occurrences

2022/12

題目列表
日期 題目
12/1 1704. Determine if String Halves Are Alike
371. Sum of Two Integers
12/2 1657. Determine if Two Strings Are Close
859. Buddy Strings
12/3 451. Sort Characters By Frequency
12/4 2256. Minimum Average Difference
12/5 876. Middle of the Linked List
12/6 328. Odd Even Linked List
12/7 938. Range Sum of BST
98. Validate Binary Search Tree
12/8 872. Leaf-Similar Trees
12/9 1026. Maximum Difference Between Node and Ancestor
12/10 1339. Maximum Product of Splitted Binary Tree
12/11 124. Binary Tree Maximum Path Sum
12/12 70. Climbing Stairs
2498. Frog Jump II
12/13 931. Minimum Falling Path Sum
1289. Minimum Falling Path Sum II
12/14 198. House Robber
12/15 1143. Longest Common Subsequence
12/16 232. Implement Queue using Stacks
12/17 150. Evaluate Reverse Polish Notation
12/18 739. Daily Temperatures
12/19 1971. Find if Path Exists in Graph
12/20 841. Keys and Rooms
12/21 886. Possible Bipartition
12/22 834. Sum of Distances in Tree
12/23 309. Best Time to Buy and Sell Stock with Cooldown
121. Best Time to Buy and Sell Stock
122. Best Time to Buy and Sell Stock II
12/24 790. Domino and Tromino Tiling
12/25 2389. Longest Subsequence With Limited Sum
791. Custom Sort String
12/26 55. Jump Game
12/27 2279. Maximum Bags With Full Capacity of Rocks
12/28 1962. Remove Stones to Minimize the Total
12/29 1834. Single-Threaded CPU
12/30 797. All Paths From Source to Target
12/31 980. Unique Paths III

2023/1

題目列表
日期 題目
1/1 290. Word Pattern
1/2 520. Detect Capital
1/3 944. Delete Columns to Make Sorted
1/4 2244. Minimum Rounds to Complete All Tasks
1/5 452. Minimum Number of Arrows to Burst Balloons
1/6 1833. Maximum Ice Cream Bars
1/7 134. Gas Station
1/8 149. Max Points on a Line
1/9 144. Binary Tree Preorder Traversal
1/10 100. Same Tree
1/11 1443. Minimum Time to Collect All Apples in a Tree
1/12 1519. Number of Nodes in the Sub-Tree With the Same Label
1/13 2246. Longest Path With Different Adjacent Characters
1/14 1061. Lexicographically Smallest Equivalent String
1/15 2421. Number of Good Paths
1/16 57. Insert Interval
1/17 926. Flip String to Monotone Increasing
1/18 918. Maximum Sum Circular Subarray
1/19 974. Subarray Sums Divisible by K
1/20 491. Non-decreasing Subsequences
1/21 93. Restore IP Addresses
1/22 131. Palindrome Partitioning
1/23 997. Find the Town Judge
1/24 909. Snakes and Ladders
1/25 2359. Find Closest Node to Given Two Nodes
1/26 787. Cheapest Flights Within K Stops
1/27 472. Concatenated Words
1/28 352. Data Stream as Disjoint Intervals
1/29 460. LFU Cache
1/30 1137. N-th Tribonacci Number
1/31 1626. Best Team With No Conflicts

2023/2

題目列表
日期 題目
2/1 1071. Greatest Common Divisor of Strings
2/2 953. Verifying an Alien Dictionary
2/3 6. Zigzag Conversion
2/4 567. Permutation in String
2/5 438. Find All Anagrams in a String
2/6 1470. Shuffle the Array
2/7 904. Fruit Into Baskets
2/8 45. Jump Game II
2/9 2306. Naming a Company
2/10 1162. As Far from Land as Possible
2/11 1129. Shortest Path with Alternating Colors
2/12 2477. Minimum Fuel Cost to Report to the Capital
2/13 1523. Count Odd Numbers in an Interval Range
2/14 67. Add Binary
2/15 989. Add to Array-Form of Integer
2/16 104. Maximum Depth of Binary Tree
2/17 783. Minimum Distance Between BST Nodes
2/18 226. Invert Binary Tree
2/19 103. Binary Tree Zigzag Level Order Traversal
2/20 35. Search Insert Position
2/21 540. Single Element in a Sorted Array
2/22 1011. Capacity To Ship Packages Within D Days
2/23 502. IPO
2/24 1675. Minimize Deviation in Array
2/25 121. Best Time to Buy and Sell Stock
2/26 72. Edit Distance
2/27 427. Construct Quad Tree
2/28 652. Find Duplicate Subtrees

2023/3

題目列表
日期 題目
3/1 912. Sort an Array
3/2 443. String Compression
3/3 28. Find the Index of the First Occurrence in a String
3/4 2444. Count Subarrays With Fixed Bounds
3/5 1345. Jump Game IV
3/6 1539. Kth Missing Positive Number
3/7 2187. Minimum Time to Complete Trips
3/8 875. Koko Eating Bananas
3/9 142. Linked List Cycle II
3/10 382. Linked List Random Node
3/11 109. Convert Sorted List to Binary Search Tree
3/12 23. Merge k Sorted Lists
3/13 101. Symmetric Tree
3/14 129. Sum Root to Leaf Numbers
3/15 958. Check Completeness of a Binary Tree
3/16 106. Construct Binary Tree from Inorder and Postorder Traversal
3/17 208. Implement Trie (Prefix Tree)
3/18 1472. Design Browser History
3/19 211. Design Add and Search Words Data Structure
3/20 605. Can Place Flowers
3/21 2348. Number of Zero-Filled Subarrays
3/22 2492. Minimum Score of a Path Between Two Cities
3/23 1319. Number of Operations to Make Network Connected
3/24 1466. Reorder Routes to Make All Paths Lead to the City Zero
3/25 2316. Count Unreachable Pairs of Nodes in an Undirected Graph
3/26 2360. Longest Cycle in a Graph
3/27 64. Minimum Path Sum
3/28 983. Minimum Cost For Tickets
3/29 1402. Reducing Dishes
3/30 87. Scramble String
3/31 1444. Number of Ways of Cutting a Pizza

2023/4

題目列表
日期 題目
4/1 704. Binary Search
4/2 2300. Successful Pairs of Spells and Potions
4/3 881. Boats to Save People
4/4 2405. Optimal Partition of String
4/5 2439. Minimize Maximum of Array
4/6 1254. Number of Closed Islands
4/7 1020. Number of Enclaves
4/8 133. Clone Graph
4/9 1857. Largest Color Value in a Directed Graph
4/10 20. Valid Parentheses
4/11 2390. Removing Stars From a String
4/12 71. Simplify Path
4/13 946. Validate Stack Sequences
4/14 516. Longest Palindromic Subsequence
4/15 2218. Maximum Value of K Coins From Piles
4/16 1639. Number of Ways to Form a Target String Given a Dictionary
4/17 1431. Kids With the Greatest Number of Candies
4/18 1768. Merge Strings Alternately
4/19 1372. Longest ZigZag Path in a Binary Tree
4/20 662. Maximum Width of Binary Tree
4/21 879. Profitable Schemes
4/22 1312. Minimum Insertion Steps to Make a String Palindrome
4/23 1416. Restore The Array
4/24 1046. Last Stone Weight
4/25 2336. Smallest Number in Infinite Set
4/26 258. Add Digits
4/27 319. Bulb Switcher
4/28 839. Similar String Groups
4/29 1697. Checking Existence of Edge Length Limited Paths
4/30 1579. Remove Max Number of Edges to Keep Graph Fully Traversable

2023/5

題目列表
日期 題目
5/1 1491. Average Salary Excluding the Minimum and Maximum Salary
5/2 1822. Sign of the Product of an Array
5/3 2215. Find the Difference of Two Arrays
5/4 649. Dota2 Senate
5/5 1456. Maximum Number of Vowels in a Substring of Given Length
5/6 1498. Number of Subsequences That Satisfy the Given Sum Condition
5/7 1964. Find the Longest Valid Obstacle Course at Each Position
5/8 1572. Matrix Diagonal Sum
5/9 54. Spiral Matrix
5/10 59. Spiral Matrix II
5/11 1035. Uncrossed Lines
5/12 2140. Solving Questions With Brainpower
5/13 2466. Count Ways To Build Good Strings
5/14 1799. Maximize Score After N Operations
5/15 1721. Swapping Nodes in a Linked List
5/16 24. Swap Nodes in Pairs
5/17 2130. Maximum Twin Sum of a Linked List
5/18 1557. Minimum Number of Vertices to Reach All Nodes
5/19 785. Is Graph Bipartite?
5/20 399. Evaluate Division
5/21 934. Shortest Bridge
5/22 347. Top K Frequent Elements
5/23 703. Kth Largest Element in a Stream
5/24 2542. Maximum Subsequence Score
5/25 837. New 21 Game
5/26 1140. Stone Game II
877. Stone Game
5/27 1406. Stone Game III
5/28 1547. Minimum Cost to Cut a Stick
5/29 1603. Design Parking System
5/30 705. Design HashSet
5/31 1396. Design Underground System

2023/6

題目列表
日期 題目
6/1 1091. Shortest Path in Binary Matrix
6/2 2101. Detonate the Maximum Bombs
6/3 1376. Time Needed to Inform All Employees
6/4 547. Number of Provinces
6/5 1232. Check If It Is a Straight Line
6/6 1502. Can Make Arithmetic Progression From Sequence
6/7 1318. Minimum Flips to Make a OR b Equal to c
6/8 1351. Count Negative Numbers in a Sorted Matrix
6/9 744. Find Smallest Letter Greater Than Target
6/10 1802. Maximum Value at a Given Index in a Bounded Array
6/11 1146. Snapshot Array
6/12 228. Summary Ranges
6/13 2352. Equal Row and Column Pairs
6/14 530. Minimum Absolute Difference in BST
6/15 1161. Maximum Level Sum of a Binary Tree
6/16 1569. Number of Ways to Reorder Array to Get Same BST
6/17 1187. Make Array Strictly Increasing
6/18 2328. Number of Increasing Paths in a Grid
6/19 1732. Find the Highest Altitude
6/20 2090. K Radius Subarray Averages
6/21 2448. Minimum Cost to Make Array Equal
6/22 714. Best Time to Buy and Sell Stock with Transaction Fee
6/23 1027. Longest Arithmetic Subsequence
6/24 956. Tallest Billboard
6/25 1575. Count All Possible Routes
6/26 2462. Total Cost to Hire K Workers
6/27 373. Find K Pairs with Smallest Sums
6/28 1514. Path with Maximum Probability
6/29 864. Shortest Path to Get All Keys
6/30 1970. Last Day Where You Can Still Cross

2023/7

題目列表
日期 題目
7/1 2305. Fair Distribution of Cookies
7/2 1601. Maximum Number of Achievable Transfer Requests
7/3 859. Buddy Strings
7/4 137. Single Number II
7/5 1493. Longest Subarray of 1's After Deleting One Element
7/6 209. Minimum Size Subarray Sum
7/7 2024. Maximize the Confusion of an Exam
7/8 2551. Put Marbles in Bags
7/9 2272. Substring With Largest Variance
7/10 111. Minimum Depth of Binary Tree
7/11 863. All Nodes Distance K in Binary Tree
7/12 802. Find Eventual Safe States
7/13 207. Course Schedule
7/14 1218. Longest Arithmetic Subsequence of Given Difference
7/15 1751. Maximum Number of Events That Can Be Attended II
7/16 1125. Smallest Sufficient Team
7/17 445. Add Two Numbers II
7/18 146. LRU Cache
7/19 435. Non-overlapping Intervals
7/20 735. Asteroid Collision
7/21 673. Number of Longest Increasing Subsequence
7/22 688. Knight Probability in Chessboard
7/23 894. All Possible Full Binary Trees
7/24 50. Pow(x, n)
7/25 852. Peak Index in a Mountain Array
7/26 1870. Minimum Speed to Arrive on Time
7/27 2141. Maximum Running Time of N Computers
7/28 486. Predict the Winner
7/29 808. Soup Servings
7/30 664. Strange Printer
7/31 712. Minimum ASCII Delete Sum for Two Strings

2023/8

日期 題目
8/1 77. Combinations
8/2 46. Permutations
8/3 17. Letter Combinations of a Phone Number
8/4 139. Word Break
8/5 95. Unique Binary Search Trees II
8/6 920. Number of Music Playlists
8/7 74. Search a 2D Matrix
8/8 33. Search in Rotated Sorted Array
8/9 2616. Minimize the Maximum Difference of Pairs
8/10 81. Search in Rotated Sorted Array II

30 Days of LC JavaScript Challenge

題目列表
Day Topic Problem
1 (5/5) Closure Create Hello World Function
2 (5/6) Closure Counter
3 (5/7) Closure Counter II
4 (5/8) Basic Array Transforms Apply Transform Over Each Element in Array
5 (5/9) Basic Array Transforms Filter Elements from Array
6 (5/10) Basic Array Transforms Array Reduce Transformation
7 (5/11) Function input and Output Function Composition
8 (5/12) Function input and Output Allow One Function Call
9 (5/13) Function input and Output Memoize
10 (5/14) Function input and Output Curry
11 (5/15) Promise Sleep
12 (5/16) Promise Promise Time Limit
13 (5/17) Promise Promise Pool
14 (5/18) Time (setTimeout) Cache With Time Limit
15 (5/19) Time (setTimeout) Debounce
16 (5/20) Time (setTimeout) Throttle
17 (5/21) JSON / Recursion / Important Utilities JSON Deep Equal
18 (5/22) JSON / Recursion / Important Utilities Convert Object to JSON String
19 (5/23) JSON / Recursion / Important Utilities Array of Objects to Matrix
20 (5/24) JSON / Recursion / Important Utilities Differences Between Two Objects
21 (5/25) JSON / Recursion / Important Utilities Chunk Array
22 (5/26) JSON / Recursion / Important Utilities Flatten Deeply Nested Array
23 (5/27) This Array Prototype Last
24 (5/28) This Group By
25 (5/29) This Check if Object Instance of Class
26 (5/30) This Call Function with Custom Context
27 (5/31) Classes Event Emitter
28 (6/1) Classes Array Wrapper
29 (6/2) Generators Generate Fibonacci Sequence
30 (6/3) Generators Nested Array Generator

難度

Easy

題目列表

Medium

題目列表

Hard

題目列表

題型

Array

題目列表

Linked List

題目列表

Matrix

題目列表

String

題目列表

Math

題目列表

Bit Manipulation

題目列表

Stack/Queue

題目列表

Hash Table

題目列表

Prefix Sum

題目列表

Greedy

題目列表

Backtracking

題目列表

Two Pointers

題目列表

Sliding Window

題目列表

Sorting

題目列表

Tree

題目列表

Heap

題目列表
題目列表

BFS/DFS

題目列表

Divide and Conquer

題目列表

Dynamic Programming

題目列表

Graph

題目列表