All problems

彙整全部的題單與筆記。

1. Two Sum

2. Add Two Numbers

3. Longest Substring Without Repeating Characters

5. Longest Palindromic Substring

6. Zigzag Conversion

7. Reverse Integer

8. String to Integer (atoi)

9. Palindrome Number

11. Container With Most Water

12. Integer to Roman

13. Roman to Integer

14. Longest Common Prefix

15. 3Sum

17. Letter Combinations of a Phone Number

20. Valid Parentheses

22. Generate Parentheses

26. Remove Duplicates from Sorted Array

27. Remove Element

28. Find the Index of the First Occurrence in a String

29. Divide Two Integers

53. Maximum Subarray

55. Jump Game

56. Merge Intervals

60. Permutation Sequence

66. Plus One

67. Add Binary

70. Climbing Stairs

80. Remove Duplicates from Sorted Array II

84. Largest Rectangle in Histogram

88. Merge Sorted Array

104. Maximum Depth of Binary Tree

110. Balanced Binary Tree

121. Best Time to Buy and Sell Stock

122. Best Time to Buy and Sell Stock II

125. Valid Palindrome

139. Word Break

141. Linked List Cycle

146. LRU Cache

150. Evaluate Reverse Polish Notation

151. Reverse Words in a String

169. Majority Element

1700. Number of Students Unable to Eat Lunch

189. Rotate Array

190. Reverse Bits

1952. Three Divisors

1980. Find Unique Binary String

198. House Robber

199. Binary Tree Right Side View

200. Number of Islands

206. Reverse Linked List

207. Course Schedule

2073. Time Needed to Buy Tickets

2095. Delete the Middle Node of a Linked List

2130. Maximum Twin Sum of a Linked List

224. Basic Calculator

231. Power of Two

232. Implement Queue using Stacks

233. Number of Digit One

238. Product of Array Except Self

283. Move Zeroes

316. Remove Duplicate Letters

322. Coin Change

326. Power of Three

328. Odd Even Linked List

334. Increasing Triplet Subsequence

342. Power of Four

345. Reverse Vowels of a String

374. Guess Number Higher or Lower

383. Ransom Note

392. Is Subsequence

394. Decode String

409. Longest Palindrome

437. Path Sum III

443. String Compression

448. Find All Numbers Disappeared in an Array

450. Delete Node in a BST

485. Max Consecutive Ones

518. Coin Change II

520. Detect Capital

547. Number of Provinces

605. Can Place Flowers

643. Maximum Average Subarray I

636. Exclusive Time of Functions

645. Set Mismatch

649. Dota2 Senate

693. Binary Number with Alternating Bits

700. Search in a Binary Search Tree

704. Binary Search

724. Find Pivot Index

735. Asteroid Collision

739. Daily Temperatures

744. Find Smallest Letter Greater Than Target

746. Min Cost Climbing Stairs

796. Rotate String

799. Champagne Tower

841. Keys and Rooms

872. Leaf-Similar Trees

876. Middle of the Linked List

933. Number of Recent Calls

941. Valid Mountain Array

994. Rotting Oranges

1004. Max Consecutive Ones III

1009. Complement of Base 10 Integer

1046. Last Stone Weight

1022. Sum of Root To Leaf Binary Numbers

1071. Greatest Common Divisor of Strings

1137. N-th Tribonacci Number

1161. Maximum Level Sum of a Binary Tree

1200. Minimum Absolute Difference

1207. Unique Number of Occurrences

1266. Minimum Time Visiting All Points

1344. Angle Between Hands of a Clock

1356. Sort Integers by The Number of 1 Bits

1365. How Many Numbers Are Smaller Than the Current Number

1372. Longest ZigZag Path in a Binary Tree

1382. Balance a Binary Search Tree

1404. Number of Steps to Reduce a Number in Binary Representation to One

1431. Kids With the Greatest Number of Candies

1441. Build an Array With Stack Operations

1448. Count Good Nodes in Binary Tree

1456. Maximum Number of Vowels in a Substring of Given Length

1475. Final Prices With a Special Discount in a Shop

1466. Reorder Routes to Make All Paths Lead to the City Zero

1470. Shuffle the Array

1493. Longest Subarray of 1's After Deleting One Element

1502. Can Make Arithmetic Progression From Sequence

1536. Minimum Swaps to Arrange a Binary Grid

1545. Find Kth Bit in Nth Binary String

1582. Special Positions in a Binary Matrix

1594. Maximum Non Negative Product in a Matrix

1653. Minimum Deletions to Make String Balanced

1657. Determine if Two Strings Are Close

1679. Max Number of K-Sum Pairs

1680. Concatenation of Consecutive Binary Numbers

1689. Partitioning Into Minimum Number Of Deci-Binary Numbers

1732. Find the Highest Altitude

1727. Largest Submatrix With Rearrangements

1758. Minimum Changes To Make Alternating Binary String

1768. Merge Strings Alternately

1784. Check if Binary String Has at Most One Segment of Ones

1886. Determine Whether Matrix Can Be Obtained By Rotation

1877. Minimize Maximum Pair Sum in Array

1888. Minimum Number of Flips to Make the Binary String Alternating

1926. Nearest Exit from Entrance in Maze

1929. Concatenation of Array

2124. Check if All A's Appears Before All B's

215. Kth Largest Element in an Array

2215. Find the Difference of Two Arrays

2300. Successful Pairs of Spells and Potions

2336. Smallest Number in Infinite Set

2352. Equal Row and Column Pairs

236. Lowest Common Ancestor of a Binary Tree

2390. Removing Stars From a String

2462. Total Cost to Hire K Workers

2542. Maximum Subsequence Score

2839. Check if Strings Can be Made Equal With Operations I

2840. Check if Strings Can be Made Equal With Operations II

2906. Construct Product Matrix

2946. Matrix Similarity After Cyclic Shifts

3010. Divide an Array Into Subarrays With Minimum Cost I

3070. Count Submatrices with Top-Left Element and Sum Less Than k

3129. Find All Possible Stable Binary Arrays I

3212. Count Submatrices With Equal Frequency of X and Y

3314. Construct the Minimum Bitwise Array I

3379. Transformed Array

3507. Minimum Pair Removal to Sort Array I

3546. Equal Sum Grid Partition I

3567. Minimum Absolute Difference in Sliding Submatrix

3634. Minimum Removals to Balance Array

3637. Trionic Array I

3640. Trionic Array II

3643. Flip Square Submatrix Vertically

3809. Best Reachable Tower

3810. Minimum Operations to Reach Target Array

3813. Vowel-Consonant Score

3814. Maximum Capacity Within Budget

3815. Design Auction System

3818. Minimum Prefix Removal to Make Array Strictly Increasing

3819. Rotate Non-Negative Elements

3821. Find Nth Smallest Integer with K One Bits

3823. Reverse Letters Then Special Characters in a String

3824. Minimum K to Reduce Array Within Limit

3827. Count Monobit Integers

3828. Final Element After Subarray Deletions

3829. Design Ride Sharing System

3830. Longest Alternating Subarray After Removing At Most One Element

3833. Count Dominant Indices

3834. Merge Adjacent Equal Elements

3838. Weighted Word Mapping

3839. Number of Prefix Connected Groups

3840. House Robber V

3842. Toggle Light Bulbs

3843. First Element with Unique Frequency

3847. Find the Score Difference in a Game

3848. Check Digitorial Permutation

3849. Maximum Bitwise XOR After Rearrangement

3852. Smallest Pair With Different Frequencies

3853. Merge Close Characters

3855. Sum of K-Digit Numbers in a Range

3856. Trim Trailing Vowels

3857. Minimum Cost to Split into Ones

3858. Minimum Bitwise OR From Grid

3861. Minimum Capacity Box

3862. Find the Smallest Balanced Index

3875. Construct Uniform Parity Array I

3876. Construct Uniform Parity Array II

3877. Minimum Removals to Achieve Target XOR

3878. Count Good Subarrays

3880. Minimum Absolute Difference Between Two Values

3881. Direction Assignments with Exactly K Visible People

3882. Minimum XOR Path in a Grid

3863. Minimum Operations to Sort a String

3864. Minimum Cost to Partition a Binary String

3866. First Unique Even Element

3867. Sum of GCD of Formed Pairs

3868. Minimum Cost to Equalize Arrays Using Swaps

162. Find Peak Element

3884. First Matching Character From Both Ends

3885. Design Event Manager