- 博客(59)
- 收藏
- 关注
原创 684. Redundant Connection 685. Redundant Connection II
graph such that, there is exactly one node (the root) for which all other nodes are descendants后人 of this node, plus every node has exactly one parent, except for the root node which has no parents.
2023-12-15 23:35:50
1037
原创 1971. Find if Path Exists in Graph
【代码】1971. Find if Path Exists in Graph。
2023-12-15 01:28:13
594
原创 841. Keys and Rooms127. Word Ladder 827. Making A Large Island
【代码】841. Keys and Rooms127. Word Ladder 827. Making A Large Island。
2023-12-14 07:46:25
1079
原创 130. Surrounded Regions 417. Pacific Atlantic Water Flow
【代码】130. Surrounded Regions 417. Pacific Atlantic Water Flow。
2023-12-13 01:36:34
1090
原创 695. Max Area of Island 1020. Number of Enclaves
【代码】695. Max Area of Island 1020. Number of Enclaves。
2023-12-12 01:08:14
482
原创 797. All Paths From Source to Target 200. Number of Islands
【代码】797. All Paths From Source to Target 200. Number of Islands。
2023-12-10 22:02:25
403
原创 503. Next Greater Element II 42. Trapping Rain Water
【代码】503. Next Greater Element II 42. Trapping Rain Water。
2023-12-08 05:49:12
885
原创 739. Daily Temperatures 496. Next Greater Element I
【代码】739. Daily Temperatures 496. Next Greater Element I。
2023-12-07 08:37:33
802
原创 647. Palindromic Substrings 516. Longest Palindromic Subsequence
【代码】647. Palindromic Substrings 516. Longest Palindromic Subsequence。
2023-12-05 23:39:01
1108
原创 583. Delete Operation for Two Strings 72. Edit Distance
删 dp[i][j] = dp[i - 1][j] + 1,dp[i][j] = dp[i][j - 1] + 1。
2023-12-04 23:48:43
912
原创 392. Is Subsequence 115. Distinct Subsequences
【代码】392. Is Subsequence 115. Distinct Subsequences。
2023-12-03 23:56:30
877
原创 1143. Longest Common Subsequence 1035. Uncrossed Lines 53. Maximum Subarray
第二次还没ac 老了老了。
2023-12-03 05:20:39
1217
原创 300. Longest Increasing Subsequence 674. Longest Continuous Increasing Subsequence 718. Maximum Len
【代码】300. Longest Increasing Subsequence 674. Longest Continuous Increasing Subsequence 718. Maximum Len。
2023-12-01 22:46:26
993
原创 309. Best Time to Buy and Sell Stock with Cooldown 714. Best Time to Buy and Sell Stock with Transa
【代码】309. Best Time to Buy and Sell Stock with Cooldown 714. Best Time to Buy and Sell Stock with Transa。
2023-12-01 00:43:35
997
原创 123. Best Time to Buy and Sell Stock III 188. Best Time to Buy and Sell Stock IV
【代码】123. Best Time to Buy and Sell Stock III 188. Best Time to Buy and Sell Stock IV。
2023-11-30 07:35:13
431
原创 121. Best Time to Buy and Sell Stock 122. Best Time to Buy and Sell Stock II
【代码】121. Best Time to Buy and Sell Stock 122. Best Time to Buy and Sell Stock II。
2023-11-29 07:16:48
884
原创 198. House Robber 213. House Robber II 337. House Robber III
【代码】198. House Robber 213. House Robber II 337. House Robber III。
2023-11-29 04:27:51
1564
原创 322. Coin Change 279. Perfect Squares
【代码】322. Coin Change 279. Perfect Squares。
2023-11-27 08:12:55
481
原创 518. Coin Change II 377. Combination Sum IV
【代码】518. Coin Change II 377. Combination Sum IV。
2023-11-26 01:02:14
530
原创 knapsack problem 1049. Last Stone Weight II 494. Target Sum 474. Ones and Zeroes
m,n 是这个背包的两个维度,不是两个物品所以还是 01背包问题。
2023-11-25 08:51:53
907
原创 Backpack problems 416. Partition Equal Subset Sum
There aren objectsw weightsweight[i]value[i]from [0-i]capacity j// weight数组的大小 就是物品个数i++) { // 遍历物品j++) { // 遍历背包容量。
2023-11-24 03:01:28
1204
原创 343. Integer Break 96. Unique Binary Search Trees
【代码】343. Integer Break 96. Unique Binary Search Trees。
2023-11-23 02:25:22
292
原创 62. Unique Paths 63. Unique Paths II
【代码】62. Unique Paths 63. Unique Paths II。
2023-11-22 00:04:54
84
原创 509. Fibonacci Number 70. Climbing Stairs 746. Min Cost Climbing Stairs
【代码】509. Fibonacci Number 70. Climbing Stairs 746. Min Cost Climbing Stairs。
2023-11-20 23:24:26
357
原创 738. Monotone Increasing Digits 968. Binary Tree Cameras
【代码】738. Monotone Increasing Digits 968. Binary Tree Cameras。
2023-11-20 04:10:44
151
原创 435. Non-overlapping Intervals 763. Partition Labels 56. Merge Intervals
【代码】435. Non-overlapping Intervals 763. Partition Labels 56. Merge Intervals。
2023-11-19 02:41:44
81
原创 860. Lemonade Change 406. Queue Reconstruction by Height 452. Minimum Number of Arrows to Burst Ba
net transaction净交易。attributes属性。
2023-11-18 01:25:37
105
原创 1005. Maximize Sum Of Array After K Negations 134. Gas Station 135. Candy
assigned a rating value评价。
2023-11-17 23:36:56
65
原创 122. Best Time to Buy and Sell Stock II 55. Jump Game 45. Jump Game II
【代码】122. Best Time to Buy and Sell Stock II 55. Jump Game 45. Jump Game II。
2023-11-17 00:44:01
82
原创 455. Assign Cookies 376. Wiggle Subsequence 53. Maximum Subarray
delete the nodes on the monotonic slope 单调坡 (excluding the nodes at the ends of the monotonic slope), then this slope can have two local peaks.strictly(严格地) alternate(交替)content with 满足。In contrast 相反。successive连续的。
2023-11-16 09:13:43
88
原创 332. Reconstruct Itinerary 51. N-Queens 37. Sudoku Solver
3.Can't be the same diagonal 对角线 /daɪˈæɡənl/了解backtracking,其实要用DFS。lexical词序(B>A)itinerary行程。distinct不同的。
2023-11-15 01:28:51
431
原创 491. Non-decreasing Subsequences 46. Permutations 47. Permutations II
【代码】491. Non-decreasing Subsequences 46. Permutations 47. Permutations II。
2023-11-15 00:03:01
65
原创 93. Restore IP Addresses 78. Subsets 90. Subsets II
【代码】93. Restore IP Addresses 78. Subsets 90. Subsets II。
2023-11-14 00:54:12
257
原创 39. Combination Sum 40. Combination Sum II 131. Palindrome Partitioning
【代码】39. Combination Sum 40. Combination Sum II 131. Palindrome Partitioning。
2023-11-13 01:19:56
151
原创 216. Combination Sum III 17. Letter Combinations of a Phone Number
【代码】216. Combination Sum III 17. Letter Combinations of a Phone Number。
2023-11-12 00:13:23
52
原创 669. Trim a Binary Search Tree 108. Convert Sorted Array to Binary Search Tree 538. Convert BST to G
【代码】669. Trim a Binary Search Tree 108. Convert Sorted Array to Binary Search Tree 538. Convert BST to G。
2023-11-10 00:06:53
118
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人