主要记录我每天做的题目,包括leetcode, 剑指offer等在线编程平台,以前做过的等时间够再一起分享。
- 5. Longest Palindromic Substring
- 11. Container With Most Water
- 15. 3Sum
- 17. Letter Combinations of a Phone Number
- 19. Remove Nth Node From End of List
- 7. Reverse Integer
- 8. String to Integer (atoi)
- 14. Longest Common Prefix
- 20. Valid Parentheses
- 21. Merge Two Sorted Lists
- 22. Generate Parentheses
- 26. Remove Duplicates from Sorted Array
- 28. Find the Index of the First Occurrence in a String
- 33. Search in Rotated Sorted Array
- 34. Find First and Last Position of Element in Sorted Array
- 剑指 Offer 29. 顺时针打印矩阵
- 102. 二叉树的层序遍历
- Two Sum
- Subsets II
- 12. Integer to Roman
- Path Sum II
- N-ary Tree Level Order Traversal
- 15. 3Sum
- 18. 4Sum
- Stone Game
- Add Strings
- 55. Jump Game
- Flip String to Monotone Increasing
- Range Addition II
- Find Minimum in Rotated Sorted Array
- Array of Doubled Pairs
- Two Sum IV - Input is a BST
- Complex Number Multiplication
- Sum of Square Numbers
- Verify Preorder Serialization of a Binary Tree
- Array Nesting
- Reverse Linked List
- Intersection of Two Arrays II
- Max Consecutive Ones
- 442. Find All Duplicates in an Array
- 208. Implement Trie (Prefix Tree)
- 543. Diameter of Binary Tree
- 374. Guess Number Higher or Lower
- 1008. Construct Binary Search Tree from Preorder Traversal
- 279. Perfect Squares
- 993. Cousins in Binary Tree
- 43. Multiply Strings
- 496. Next Greater Element I
- 380. Insert Delete GetRandom O(1)
- 451. Sort Characters By Frequency
- 222. Count Complete Tree Nodes
- 226. Invert Binary Tree
- 994. Rotting Oranges
- 130. Surrounded Regions
- 129. Sum Root to Leaf Numbers
- 96. Unique Binary Search Trees
- 228. Summary Ranges
- 122. Best Time to Buy and Sell Stock II
- 1413. Minimum Value to Get Positive Step by Step Sum
- 203. Remove Linked List Elements
- 739. Daily Temperatures
- 368. Largest Divisible Subset
- 668. Kth Smallest Number in Multiplication Table
- 62. Unique Paths
- 448. Find All Numbers Disappeared in an Array
- 461. Hamming Distance
- 450. Delete Node in a BST
- 952. Largest Component Size by Common Factor
- 986. Interval List Intersections
- 53. Maximum Subarray
- 35. Search Insert Position
- 797. All Paths From Source to Target
- 1290. Convert Binary Number in a Linked List to Integer
- 721. Accounts Merge
- 85. Maximal Rectangle
- 198. House Robber
- 328. Odd Even Linked List
- 152. Maximum Product Subarray
- 337. House Robber III
- 1217. Minimum Cost to Move Chips to The Same Position
- 143. Reorder List
- 210. Course Schedule II
- 56. Merge Intervals
- 476. Number Complement
- 876. Middle of the Linked List
- 116. Populating Next Right Pointers in Each Node
- 1015. Smallest Integer Divisible by K
- 312. Burst Balloons
- 1010. Pairs of Songs With Total Durations Divisible by 60
- 1094. Car Pooling
- 605. Can Place Flowers
- 134. Gas Station
- 211. Design Add and Search Words Data Structure
- 567. Permutation in String
- 81. Search in Rotated Sorted Array II
- 104. Maximum Depth of Binary Tree
- 136. Single Number
- 39. Combination Sum
- 402. Remove K Digits
- 171. Excel Sheet Column Number
- 413. Arithmetic Slices
- 71. Simplify Path
- 946. Validate Stack Sequences
- 659. Split Array into Consecutive Subsequences
- 342. Power of Four
- 234. Palindrome Linked List
- 326. Power of Three
- 383. Ransom Note
- 215. Kth Largest Element in an Array
- 869. Reordered Power of 2
- 108. Convert Sorted Array to Binary Search Tree
- 417. Pacific Atlantic Water Flow
- 1448. Count Good Nodes in Binary Tree
- 637. Average of Levels in Binary Tree
- 967. Numbers With Same Consecutive Differences
- 1582. Special Positions in a Binary Matrix
- 429. N-ary Tree Level Order Traversal
- 814. Binary Tree Pruning
- 1592. Rearrange Spaces Between Words
- 94. Binary Tree Inorder Traversal
- 1996. The Number of Weak Characters in the Game
- 121. Best Time to Buy and Sell Stock
- 3. Longest Substring Without Repeating Characters
- 237. Delete Node in a Linked List
- 1441. 用栈操作构建数组
- 886. 可能的二分法
- 904. Fruit Into Baskets
- 901. 股票价格跨度
- 645. Set Mismatch
- 1662. Check If Two String Arrays are Equivalent
- 835. Image Overlap
- 49. Group Anagrams
- 766. Toeplitz Matrix
- 433. Minimum Genetic Mutation
- 2131. Longest Palindrome by Concatenating Two Letter Words
- 1323. Maximum 69 Number
- 1544. Make The String Great
- 901. Online Stock Span
- 1047. Remove All Adjacent Duplicates In String
- 26. Remove Duplicates from Sorted Array
- 151. Reverse Words in a String
- 947. Most Stones Removed with Same Row or Column
- 222. Count Complete Tree Nodes
- 374. Guess Number Higher or Lower
- 792. 匹配子序列的单词数
- 263. Ugly Number
- 1926. Nearest Exit from Entrance in Maze
- 279. Perfect Squares
- 1742. 盒子中小球的最大数量
- 670. Maximum Swap
- 907. Sum of Subarray Minimums
- 1752. 检查数组是否经排序和轮转得到
- 2225. Find Players With Zero or One Losses
- 380. Insert Delete GetRandom O(1)
- 1073. Adding Two Negabinary Numbers
- 1207. Unique Number of Occurrences
- 1704. Determine if String Halves Are Alike
- 1657. Determine if Two Strings Are Close
- 451. Sort Characters By Frequency
- 2256. Minimum Average Difference
- 876. Middle of the Linked List
- 328. Odd Even Linked List
- 938. Range Sum of BST
- 872. Leaf-Similar Trees
- 46. Permutations
- 1026. Maximum Difference Between Node and Ancestor
- 1339. Maximum Product of Splitted Binary Tree
- 124. Binary Tree Maximum Path Sum
- 931. Minimum Falling Path Sum
- 198. House Robber
- 232. Implement Queue using Stacks
- 150. Evaluate Reverse Polish Notation
- 739. Daily Temperatures
- 55. Jump Game
- 2279. Maximum Bags With Full Capacity of Rocks
- 520. Detect Capital
- 944. Delete Columns to Make Sorted
- 2244. Minimum Rounds to Complete All Tasks
- 452. Minimum Number of Arrows to Burst Balloons
- 1833. Maximum Ice Cream Bars
- 144. Binary Tree Preorder Traversal
- 100. Same Tree
- 1443. Minimum Time to Collect All Apples in a Tree
- 1493. Longest Subarray of 1's After Deleting One Element
- 209. Minimum Size Subarray Sum
- 2024. Maximize the Confusion of an Exam
- 863. All Nodes Distance K in Binary Tree
- 802. Find Eventual Safe States
- 1218. Longest Arithmetic Subsequence of Given Difference
- 435. Non-overlapping Intervals
- 735. Asteroid Collision
- 852. Peak Index in a Mountain Array
- 486. Predict the Winner
- 712. Minimum ASCII Delete Sum for Two Strings
- 77. Combinations
- 92. Reverse Linked List II
- 2433. Find The Original Array of Prefix Xor
- 2265. Count Nodes Equal to Average of Subtree
- 191. Number of 1 Bits
- 1160. Find Words That Can Be Formed by Characters
- 2264. Largest 3-Same-Digit Number in String
- 1688. Count of Matches in Tournament
- 1716. Calculate Money in Leetcode Bank
- 1903. Largest Odd Number in String
- 1464. Maximum Product of Two Elements in an Array
- 1582. Special Positions in a Binary Matrix
- 2482. Difference Between Ones and Zeros in Row and Column
- 1436. Destination City
- 242. Valid Anagram
- 1913. Maximum Product Difference Between Two Pairs
- 661. Image Smoother
- 2706. Buy Two Chocolates
- 1637. Widest Vertical Area Between Two Points Containing No Points
- 1422. Maximum Score After Splitting a String
- 1496. Path Crossing
- 1758. Minimum Changes To Make Alternating Binary String
- 91. Decode Ways
- 1155. Number of Dice Rolls With Target Sum
- 1578. Minimum Time to Make Rope Colorful
- 1531. String Compression II
- 1335. Minimum Difficulty of a Job Schedule
- 1897. Redistribute Characters to Make All Strings Equal
- 1624. Largest Substring Between Two Equal Characters
- 2610. Convert an Array Into a 2D Array With Conditions
- 2125. Number of Laser Beams in a Bank
- 2870. Minimum Number of Operations to Make Array Empty
- 300. Longest Increasing Subsequence
- 938. Range Sum of BST
- 872. Leaf-Similar Trees
- 2385. Amount of Time for Binary Tree to Be Infected
- 1026. Maximum Difference Between Node and Ancestor
- 2225. Find Players With Zero or One Losses
- 380. Insert Delete GetRandom O(1)
- 1207. Unique Number of Occurrences
- 70. Climbing Stairs
- 931. Minimum Falling Path Sum
- 645. Set Mismatch
- 1239. Maximum Length of a Concatenated String with Unique Characters
- 1457. Pseudo-Palindromic Paths in a Binary Tree
- 1143. Longest Common Subsequence
- 576. Out of Boundary Paths
- 232. Implement Queue using Stacks
- 2966. Divide Array Into Arrays With Max Difference
- 1291. Sequential Digits
- 1043. Partition Array for Maximum Sum
- 76. Minimum Window Substring
- 387. First Unique Character in a String
- 49. Group Anagrams
- 451. Sort Characters By Frequency
- 231. Power of Two
- 268. Missing Number
- 201. Bitwise AND of Numbers Range
- 513. Find Bottom Left Tree Value
- 1609. Even Odd Tree
- 2864. Maximum Odd Binary Number
- 948. Bag of Tokens
- 1750. Minimum Length of String After Deleting Similar Ends
- 3005. Count Elements With Maximum Frequency
- 2540. Minimum Common Value
- 791. Custom Sort String
- 2485. Find the Pivot Integer
- 930. Binary Subarrays With Sum
- 238. Product of Array Except Self
- 452. Minimum Number of Arrows to Burst Balloons
- 1669. Merge In Between Linked Lists
- 206. Reverse Linked List
- 1700. Number of Students Unable to Eat Lunch
- 2073. Time Needed to Buy Tickets
- 988. Smallest String Starting From Leaf
- 463. Island Perimeter
- 1137. N-th Tribonacci Number
- 2370. Longest Ideal Subsequence
- 834. Sum of Distances in Tree
- 2997. Minimum Number of Operations to Make Array XOR Equal to K
- 1915. Number of Wonderful Substrings
- 2816. Double a Number Represented as a Linked List
- 506. Relative Ranks
- 3075. Maximize Happiness of Selected Children
- 786. K-th Smallest Prime Fraction
- 857. Minimum Cost to Hire K Workers
- 2542. Maximum Subsequence Score
- 861. Score After Flipping Matrix
- 1219. Path with Maximum Gold
- 2331. Evaluate Boolean Binary Tree
- 1325. Delete Leaves With a Given Value
- 1863. Sum of All Subset XOR Totals
- 131. Palindrome Partitioning
- 2597. The Number of Beautiful Subsets
- 1255. Maximum Score Words Formed by Letters
- 1442. Count Triplets That Can Form Two Arrays of Equal XOR
- 260. Single Number III
- 2486. Append Characters to String to Make Subsequence
- 409. Longest Palindrome
- 1002. Find Common Characters
- 846. Hand of Straights
- 648. Replace Words
- 1122. Relative Sort Array
- 75. Sort Colors
- 633. Sum of Square Numbers
- 826. Most Profit Assigning Work
- 1509. Minimum Difference Between Largest and Smallest Value in Three Moves
- 2181. Merge Nodes in Between Zeros
- 3243. Shortest Distance After Road Addition Queries I
- https://leetcode.com/problems/course-schedule/description/
- 2109. Adding Spaces to a String
- 2825. Make String a Subsequence Using Cyclic Increments
- 2337. Move Pieces to Obtain a String
- 1792. Maximum Average Pass Ratio
- 1475. Final Prices With a Special Discount in a Shop
- 2415. Reverse Odd Levels of Binary Tree
- 2471. Minimum Number of Operations to Sort a Binary Tree by Level
- Two Sum
- Reverse Integer
- Valid Parentheses
- Palindrome Number
- Merge Two Sorted Lists
- Single Number
- Find All Numbers Disappeared in an Array
- Maximum Subarray
- 461. Hamming Distance
- 617. Merge Two Binary Trees
- 538. Convert BST to Greater Tree
- 543. Diameter of Binary Tree
- 101. Symmetric Tree
- 572. Subtree of Another Tree
- 198. House Robber
- 4. Median of Two Sorted Arrays
- 338. Counting Bits
- 938. Range Sum of BST
- 771. Jewels and Stones
- 406. Queue Reconstruction by Height
- 647. Palindromic Substrings
- 347. Top K Frequent Elements
- 33. Search in Rotated Sorted Array
- 79. Word Search
- 212. Word Search II
- 208. Implement Trie (Prefix Tree)
- 739.Daily Temperatures
- 121. Best Time to Buy and Sell Stock
- 437. Path Sum III
- 155. Min Stack
- 234. Palindrome Linked List
- 581. Shortest Unsorted Continuous Subarray
- 78. Subsets
- 994. Rotting Oranges
- 1103. Distribute Candies to People
- 48. Rotate Image
- 215. Kth Largest Element in an Array
- 102. Binary Tree Level Order Traversal
- 983. Minimum Cost For Tickets
- https://leetcode.com/problems/coin-change/
- 337. House Robber III
- 1013. Partition Array Into Three Parts With Equal Sum
- 1071. Greatest Common Divisor of Strings
- 169. Majority Element
- 229. Majority Element II
- 300. 最长上升子序列
- 695. 岛屿的最大面积
- 394. Decode String
- 1160. Find Words That Can Be Formed by Characters
- 621. Task Scheduler
- 836. Rectangle Overlap
- 114. Flatten Binary Tree to Linked List
- 105. Construct Binary Tree from Preorder and Inorder Traversal
- 309. Best Time to Buy and Sell Stock with Cooldown
- 876. Middle of the Linked List
- 17. Letter Combinations of a Phone Number
- 1025. Divisor Game
- 200. Number of Islands
- 279. Perfect Squares
- 560. Subarray Sum Equals K
- 1162. As Far from Land as Possible
- 236. Lowest Common Ancestor of a Binary Tree
- 235. Lowest Common Ancestor of a Binary Search Tree
- 416. Partition Equal Subset Sum
- 698. Partition to K Equal Sum Subsets
- 240. Search a 2D Matrix II
- 74. Search a 2D Matrix
- 148. Sort List
- 139. Word Break
- 56. Merge Intervals
- 141. Linked List Cycle
- 142. Linked List Cycle II
- 85. Maximal Rectangle
- 221. Maximal Square
- 146. LRU Cache
- 5. Longest Palindromic Substring
- 525. Contiguous Array
- 98. Validate Binary Search Tree
- 128. Longest Consecutive Sequence
- 88. Merge Sorted Array
- 110. Balanced Binary Tree
- 111. Minimum Depth of Binary Tree
- 112. Path Sum
- 118. Pascal's Triangle
- 119. Pascal's Triangle II
- 125. Valid Palindrome
- 145. Binary Tree Postorder Traversal
- 167. Two Sum II - Input array is sorted
- 168. Excel Sheet Column Title
- 203. Remove Linked List Elements
- 219. Contains Duplicate II
- 849. Maximize Distance to Closest Person
- 560. Subarray Sum Equals K
- 78. Subsets
- 169. Majority Element
- 146. LRU 缓存
- Longest Common Subsequence
- Binary Tree Maximum Path Sum
- Ransom Note
- Number Complement
- First Unique Character in a String
- Majority Element
- Cousins in Binary Tree
- Check If It Is a Straight Line
- Valid Perfect Square
- Find the Town Judge
- Flood Fill
- Remove K Digits
- Implement Trie (Prefix Tree)
- Permutation in String
- Kth Smallest Element in a BST
- Sort Characters By Frequency
- First Bad Version
- 973. K Closest Points to Origin
- Lowest Common Ancestor of a Binary Tree
- Reduce Array Size to The Half
- Kth Smallest Element in a Sorted Matrix
- Maximum Length of Repeated Subarray
- Longest Increasing Subsequence
- Decode Ways II
- Find Median from Data Stream
- Isomorphic Strings
- Partition Array into Disjoint Intervals
- 563. Binary Tree Tilt
- 面试题57 - II. 和为s的连续正数序列
- 面试题59 - II. 队列的最大值
- 121. 买卖股票的最佳时机
- 面试题 01.06. 字符串压缩
- 409. 最长回文串
- 面试题40. 最小的k个数
- 面试题 17.16. 按摩师
- 892. Surface Area of 3D Shapes
- 999. 车的可用捕获量
- 914. 卡牌分组
- ShortEndingOfWords.swift
- 面试题62. 圆圈中最后剩下的数字
- 912. 排序数组
- 674. Longest Continuous Increasing Subsequence
- 673. Number of Longest Increasing Subsequence
- 55. Jump Game
- Maximum Sum Circular Subarray
- Happy Number
- Move Zeroes
- Best Time to Buy and Sell Stock II
- Group Anagrams
- Counting Elements
- Middle of the Linked List
- Backspace String Compare
- Last Stone Weight
- Contiguous Array
- Perform String Shifts
- Product of Array Except Self
- Valid Parenthesis String
- Minimum Path Sum
- 312. Burst Balloons
- Construct Binary Search Tree from Preorder Traversal
- Leftmost Column with at Least a One
- Bitwise AND of Numbers Range
- Jewels and Stones
- Single Element in a Sorted Array
- Odd Even Linked List
- Find All Anagrams in a String
- Find K Closest Elements
- Reshape the Matrix
- Find Peak Element
- 1.Two Sum
- 2.Add Two Numbers
- 3.Longest Substring Without Repeating Characters
- 4.Median of Two Sorted Arrays
- 7.Reverse Integer
- 8.String to Integer (atoi)
- 9.Palindrome Number
- 11.Container With Most Water
- 14.Longest Common Prefix
- 15.3Sum
- 16.3Sum Closest
- 19.Remove Nth Node From End of List
- 20.Valid Parentheses
- 21.Merge Two Sorted Lists
- 22.Generate Parentheses
- 24.Swap Nodes in Pairs
- 26.Remove Duplicates from Sorted Array
- 27.Remove Element
- 28.Implement strStr()
- 29.Divide Two Integers
- 43.Multiply Strings
- 46.Permutations
- 49.Group Anagrams
- 50.Pow(x, n)
- 54.Spiral Matrix
- 58.Length of Last Word
- 60.Permutation Sequence
- 61.Rotate List
- 62.Unique Paths
- 63.Unique Paths II
- 64.Minimum Path Sum
- 66.Plus One
- 67.Add Binary
- 69.Sqrt(x)
- 71.Simplify Path
- 74.Search a 2D Matrix
- 75.Sort Colors
- 96.Unique Binary Search Trees
- 108.Convert Sorted Array to Binary Search Tree
- 141.Linked List Cycle
- 152.Maximum Product Subarray
- 153.Find Minimum in Rotated Sorted Array
- 154.Find Minimum in Rotated Sorted Array II
- 202.Happy Number
- 230.Kth Smallest Element in a BST
- 231.Power of Two
- 326.Power of Three
- 160. Intersection of Two Linked Lists
- 24点