Repository navigation
style: unify backtick identifiers with existing solution math - #6273
Merged
Merged
Conversation
When a name is already written as math in the same solution, or appears on a complexity line, use that math form instead of a backtick. Also drop three duplicated 的 in solution prose.
There was a problem hiding this comment.
🟡 Changes recommended
Identifier normalization incorrectly changes SQL and Lisp keywords and exact string literals to mathematical formatting across multiple READMEs, violating the documented distinction that preserves their backticks.
17 open issues
Preserve inline code for SQL keyword LIMIT · New Preserve inline code for SQL keyword LIMIT · New Keep SQL keyword HAVING in backticks · New Keep SQL keyword HAVING in backticks · New Keep protected syntax tokens in backticks · New Keep required output strings Push and Pop in backticks · New Keep required output strings Push and Pop in backticks · New Preserve inline code for SQL keyword UNION · New Preserve inline code for SQL keyword UNION · New Keep SQL operator UNION in backticks · New Keep SQL operator UNION in backticks · New Preserve inline code for SQL keyword WHERE · New Preserve inline code for SQL keyword WHERE · New Keep removal literals AB and CD in backticks · New Keep removal literals AB and CD in backticks · New Keep literal value Refinance in backticks · New Keep literal value Refinance in backticks · New
What changed in this PR
Standardizes mathematical identifier notation across Chinese and English solution documentation without changing executable solutions.
Changes:
- Replaces selected backticked identifiers with inline math.
- Updates algorithm explanations, Thinking blocks, and complexity annotations.
- Preserves problem statements and fenced code.
| File | Description |
|---|---|
| solution/3600-3699/3673.Find Zombie Sessions/README.md | Updated as part of this pull request. |
| solution/3600-3699/3642.Find Books with Polarized Opinions/README.md | Updated as part of this pull request. |
| solution/3600-3699/3642.Find Books with Polarized Opinions/README_EN.md | Updated as part of this pull request. |
| solution/3600-3699/3601.Find Drivers with Improved Fuel Efficiency/README.md | Updated as part of this pull request. |
| solution/3600-3699/3601.Find Drivers with Improved Fuel Efficiency/README_EN.md | Updated as part of this pull request. |
| solution/3500-3599/3571.Find the Shortest Superstring II/README.md | Updated as part of this pull request. |
| solution/3500-3599/3571.Find the Shortest Superstring II/README_EN.md | Updated as part of this pull request. |
| solution/3400-3499/3484.Design Spreadsheet/README.md | Updated as part of this pull request. |
| solution/3400-3499/3484.Design Spreadsheet/README_EN.md | Updated as part of this pull request. |
| solution/3300-3399/3358.Books with NULL Ratings/README.md | Updated as part of this pull request. |
| solution/3300-3399/3358.Books with NULL Ratings/README_EN.md | Updated as part of this pull request. |
| solution/3300-3399/3322.Premier League Table Ranking III/README.md | Updated as part of this pull request. |
| solution/3300-3399/3322.Premier League Table Ranking III/README_EN.md | Updated as part of this pull request. |
| solution/3200-3299/3215.Count Triplets with Even XOR Set Bits II/README.md | Updated as part of this pull request. |
| solution/3200-3299/3215.Count Triplets with Even XOR Set Bits II/README_EN.md | Updated as part of this pull request. |
| solution/3100-3199/3199.Count Triplets with Even XOR Set Bits I/README.md | Updated as part of this pull request. |
| solution/3100-3199/3198.Find Cities in Each State/README.md | Updated as part of this pull request. |
| solution/3100-3199/3198.Find Cities in Each State/README_EN.md | Updated as part of this pull request. |
| solution/3100-3199/3195.Find the Minimum Area to Cover All Ones I/README.md | Updated as part of this pull request. |
| solution/3100-3199/3181.Maximum Total Reward Using Operations II/README.md | Updated as part of this pull request. |
| solution/3100-3199/3174.Clear Digits/README.md | Updated as part of this pull request. |
| solution/3100-3199/3174.Clear Digits/README_EN.md | Updated as part of this pull request. |
| solution/3100-3199/3172.Second Day Verification/README.md | Updated as part of this pull request. |
| solution/3100-3199/3172.Second Day Verification/README_EN.md | Updated as part of this pull request. |
| solution/3100-3199/3163.String Compression III/README.md | Updated as part of this pull request. |
| solution/3100-3199/3158.Find the XOR of Numbers Which Appear Twice/README_EN.md | Updated as part of this pull request. |
| solution/3100-3199/3153.Sum of Digit Differences of All Pairs/README_EN.md | Updated as part of this pull request. |
| solution/3100-3199/3150.Invalid Tweets II/README_EN.md | Updated as part of this pull request. |
| solution/3100-3199/3142.Check if Grid Satisfies Conditions/README.md | Updated as part of this pull request. |
| solution/3100-3199/3142.Check if Grid Satisfies Conditions/README_EN.md | Updated as part of this pull request. |
| solution/3100-3199/3137.Minimum Number of Operations to Make Word K-Periodic/README.md | Updated as part of this pull request. |
| solution/3000-3099/3072.Distribute Elements Into Two Arrays II/README.md | Updated as part of this pull request. |
| solution/3000-3099/3072.Distribute Elements Into Two Arrays II/README_EN.md | Updated as part of this pull request. |
| solution/3000-3099/3057.Employees Project Allocation/README_EN.md | Updated as part of this pull request. |
| solution/3000-3099/3056.Snaps Analysis/README.md | Updated as part of this pull request. |
| solution/3000-3099/3056.Snaps Analysis/README_EN.md | Updated as part of this pull request. |
| solution/3000-3099/3045.Count Prefix and Suffix Pairs II/README.md | Updated as part of this pull request. |
| solution/3000-3099/3045.Count Prefix and Suffix Pairs II/README_EN.md | Updated as part of this pull request. |
| solution/3000-3099/3044.Most Frequent Prime/README.md | Updated as part of this pull request. |
| solution/3000-3099/3034.Number of Subarrays That Match a Pattern I/README.md | Updated as part of this pull request. |
| solution/3000-3099/3034.Number of Subarrays That Match a Pattern I/README_EN.md | Updated as part of this pull request. |
| solution/3000-3099/3028.Ant on the Boundary/README_EN.md | Updated as part of this pull request. |
| solution/2900-2999/2994.Friday Purchases II/README.md | Updated as part of this pull request. |
| solution/2900-2999/2994.Friday Purchases II/README_EN.md | Updated as part of this pull request. |
| solution/2900-2999/2990.Loan Types/README.md | Updated as part of this pull request. |
| solution/2900-2999/2990.Loan Types/README_EN.md | Updated as part of this pull request. |
| solution/2900-2999/2989.Class Performance/README.md | Updated as part of this pull request. |
| solution/2900-2999/2989.Class Performance/README_EN.md | Updated as part of this pull request. |
| solution/2900-2999/2987.Find Expensive Cities/README.md | Updated as part of this pull request. |
| solution/2900-2999/2987.Find Expensive Cities/README_EN.md | Updated as part of this pull request. |
| solution/2900-2999/2985.Calculate Compressed Mean/README.md | Updated as part of this pull request. |
| solution/2900-2999/2985.Calculate Compressed Mean/README_EN.md | Updated as part of this pull request. |
| solution/2900-2999/2957.Remove Adjacent Almost-Equal Characters/README_EN.md | Updated as part of this pull request. |
| solution/2900-2999/2942.Find Words Containing Character/README_EN.md | Updated as part of this pull request. |
| solution/2800-2899/2893.Calculate Orders Within Each Interval/README.md | Updated as part of this pull request. |
| solution/2700-2799/2788.Split Strings by Separator/README.md | Updated as part of this pull request. |
| solution/2700-2799/2783.Flight Occupancy and Waitlist Analysis/README.md | Updated as part of this pull request. |
| solution/2700-2799/2774.Array Upper Bound/README.md | Updated as part of this pull request. |
| solution/2700-2799/2774.Array Upper Bound/README_EN.md | Updated as part of this pull request. |
| solution/2600-2699/2696.Minimum String Length After Removing Substrings/README.md | Updated as part of this pull request. |
| solution/2600-2699/2696.Minimum String Length After Removing Substrings/README_EN.md | Updated as part of this pull request. |
| solution/2600-2699/2689.Extract Kth Character From The Rope Tree/README.md | Updated as part of this pull request. |
| solution/2600-2699/2678.Number of Senior Citizens/README.md | Updated as part of this pull request. |
| solution/2600-2699/2678.Number of Senior Citizens/README_EN.md | Updated as part of this pull request. |
| solution/2600-2699/2628.JSON Deep Equal/README.md | Updated as part of this pull request. |
| solution/2600-2699/2626.Array Reduce Transformation/README.md | Updated as part of this pull request. |
| solution/2600-2699/2626.Array Reduce Transformation/README_EN.md | Updated as part of this pull request. |
| solution/2500-2599/2575.Find the Divisibility Array of a String/README.md | Updated as part of this pull request. |
| solution/2500-2599/2575.Find the Divisibility Array of a String/README_EN.md | Updated as part of this pull request. |
| solution/2500-2599/2568.Minimum Impossible OR/README.md | Updated as part of this pull request. |
| solution/2500-2599/2568.Minimum Impossible OR/README_EN.md | Updated as part of this pull request. |
| solution/2500-2599/2551.Put Marbles in Bags/README.md | Updated as part of this pull request. |
| solution/2500-2599/2551.Put Marbles in Bags/README_EN.md | Updated as part of this pull request. |
| solution/2500-2599/2509.Cycle Length Queries in a Tree/README.md | Updated as part of this pull request. |
| solution/2500-2599/2509.Cycle Length Queries in a Tree/README_EN.md | Updated as part of this pull request. |
| solution/2400-2499/2498.Frog Jump II/README.md | Updated as part of this pull request. |
| solution/2400-2499/2468.Split Message Based on Limit/README.md | Updated as part of this pull request. |
| solution/2400-2499/2468.Split Message Based on Limit/README_EN.md | Updated as part of this pull request. |
| solution/2400-2499/2416.Sum of Prefix Scores of Strings/README.md | Updated as part of this pull request. |
| solution/2400-2499/2416.Sum of Prefix Scores of Strings/README_EN.md | Updated as part of this pull request. |
| solution/2400-2499/2406.Divide Intervals Into Minimum Number of Groups/README.md | Updated as part of this pull request. |
| solution/2300-2399/2392.Build a Matrix With Conditions/README.md | Updated as part of this pull request. |
| solution/2300-2399/2363.Merge Similar Items/README.md | Updated as part of this pull request. |
| solution/2300-2399/2363.Merge Similar Items/README_EN.md | Updated as part of this pull request. |
| solution/2300-2399/2337.Move Pieces to Obtain a String/README.md | Updated as part of this pull request. |
| solution/2300-2399/2335.Minimum Amount of Time to Fill Cups/README.md | Updated as part of this pull request. |
| solution/2300-2399/2325.Decode the Message/README.md | Updated as part of this pull request. |
| solution/2300-2399/2303.Calculate Amount Paid in Taxes/README.md | Updated as part of this pull request. |
| solution/2300-2399/2303.Calculate Amount Paid in Taxes/README_EN.md | Updated as part of this pull request. |
| solution/2200-2299/2288.Apply Discount to Prices/README.md | Updated as part of this pull request. |
| solution/2200-2299/2288.Apply Discount to Prices/README_EN.md | Updated as part of this pull request. |
| solution/2200-2299/2248.Intersection of Multiple Arrays/README.md | Updated as part of this pull request. |
| solution/2200-2299/2248.Intersection of Multiple Arrays/README_EN.md | Updated as part of this pull request. |
| solution/2200-2299/2245.Maximum Trailing Zeros in a Cornered Path/README.md | Updated as part of this pull request. |
| solution/2200-2299/2245.Maximum Trailing Zeros in a Cornered Path/README_EN.md | Updated as part of this pull request. |
| solution/2200-2299/2244.Minimum Rounds to Complete All Tasks/README.md | Updated as part of this pull request. |
| solution/2200-2299/2244.Minimum Rounds to Complete All Tasks/README_EN.md | Updated as part of this pull request. |
| solution/2200-2299/2225.Find Players With Zero or One Losses/README_EN.md | Updated as part of this pull request. |
| solution/2200-2299/2205.The Number of Users That Are Eligible for Discount/README.md | Updated as part of this pull request. |
| solution/2100-2199/2198.Number of Single Divisor Triplets/README_EN.md | Updated as part of this pull request. |
| solution/2100-2199/2129.Capitalize the Title/README.md | Updated as part of this pull request. |
| solution/2100-2199/2129.Capitalize the Title/README_EN.md | Updated as part of this pull request. |
| solution/2100-2199/2127.Maximum Employees to Be Invited to a Meeting/README.md | Updated as part of this pull request. |
| solution/2100-2199/2127.Maximum Employees to Be Invited to a Meeting/README_EN.md | Updated as part of this pull request. |
| solution/2100-2199/2114.Maximum Number of Words Found in Sentences/README.md | Updated as part of this pull request. |
| solution/2100-2199/2114.Maximum Number of Words Found in Sentences/README_EN.md | Updated as part of this pull request. |
| solution/2000-2099/2099.Find Subsequence of Length K With the Largest Sum/README_EN.md | Updated as part of this pull request. |
| solution/2000-2099/2094.Finding 3-Digit Even Numbers/README_EN.md | Updated as part of this pull request. |
| solution/2000-2099/2092.Find All People With Secret/README.md | Updated as part of this pull request. |
| solution/2000-2099/2092.Find All People With Secret/README_EN.md | Updated as part of this pull request. |
| solution/2000-2099/2089.Find Target Indices After Sorting Array/README.md | Updated as part of this pull request. |
| solution/2000-2099/2086.Minimum Number of Food Buckets to Feed the Hamsters/README.md | Updated as part of this pull request. |
| solution/2000-2099/2075.Decode the Slanted Ciphertext/README_EN.md | Updated as part of this pull request. |
| solution/2000-2099/2065.Maximum Path Quality of a Graph/README.md | Updated as part of this pull request. |
| solution/2000-2099/2065.Maximum Path Quality of a Graph/README_EN.md | Updated as part of this pull request. |
| solution/2000-2099/2056.Number of Valid Move Combinations On Chessboard/README_EN.md | Updated as part of this pull request. |
| solution/2000-2099/2050.Parallel Courses III/README_EN.md | Updated as part of this pull request. |
| solution/2000-2099/2038.Remove Colored Pieces if Both Neighbors are the Same Color/README.md | Updated as part of this pull request. |
| solution/2000-2099/2038.Remove Colored Pieces if Both Neighbors are the Same Color/README_EN.md | Updated as part of this pull request. |
| solution/2000-2099/2037.Minimum Number of Moves to Seat Everyone/README.md | Updated as part of this pull request. |
| solution/2000-2099/2037.Minimum Number of Moves to Seat Everyone/README_EN.md | Updated as part of this pull request. |
| solution/2000-2099/2021.Brightest Position on Street/README_EN.md | Updated as part of this pull request. |
| solution/2000-2099/2014.Longest Subsequence Repeated k Times/README.md | Updated as part of this pull request. |
| solution/2000-2099/2014.Longest Subsequence Repeated k Times/README_EN.md | Updated as part of this pull request. |
| solution/2000-2099/2007.Find Original Array From Doubled Array/README.md | Updated as part of this pull request. |
| solution/2000-2099/2007.Find Original Array From Doubled Array/README_EN.md | Updated as part of this pull request. |
| solution/1900-1999/1977.Number of Ways to Separate Numbers/README.md | Updated as part of this pull request. |
| solution/1900-1999/1962.Remove Stones to Minimize the Total/README.md | Updated as part of this pull request. |
| solution/1900-1999/1962.Remove Stones to Minimize the Total/README_EN.md | Updated as part of this pull request. |
| solution/1800-1899/1890.The Latest Login in 2020/README.md | Updated as part of this pull request. |
| solution/1800-1899/1890.The Latest Login in 2020/README_EN.md | Updated as part of this pull request. |
| solution/1800-1899/1873.Calculate Special Bonus/README.md | Updated as part of this pull request. |
| solution/1800-1899/1873.Calculate Special Bonus/README_EN.md | Updated as part of this pull request. |
| solution/1800-1899/1851.Minimum Interval to Include Each Query/README_EN.md | Updated as part of this pull request. |
| solution/1800-1899/1839.Longest Substring Of All Vowels in Order/README.md | Updated as part of this pull request. |
| solution/1800-1899/1833.Maximum Ice Cream Bars/README.md | Updated as part of this pull request. |
| solution/1800-1899/1831.Maximum Transaction Each Day/README.md | Updated as part of this pull request. |
| solution/1800-1899/1828.Queries on Number of Points Inside a Circle/README.md | Updated as part of this pull request. |
| solution/1800-1899/1828.Queries on Number of Points Inside a Circle/README_EN.md | Updated as part of this pull request. |
| solution/1800-1899/1827.Minimum Operations to Make the Array Increasing/README.md | Updated as part of this pull request. |
| solution/1800-1899/1825.Finding MK Average/README_EN.md | Updated as part of this pull request. |
| solution/1800-1899/1821.Find Customers With Positive Revenue this Year/README.md | Updated as part of this pull request. |
| solution/1800-1899/1821.Find Customers With Positive Revenue this Year/README_EN.md | Updated as part of this pull request. |
| solution/1800-1899/1814.Count Nice Pairs in an Array/README.md | Updated as part of this pull request. |
| solution/1800-1899/1805.Number of Different Integers in a String/README.md | Updated as part of this pull request. |
| solution/1800-1899/1805.Number of Different Integers in a String/README_EN.md | Updated as part of this pull request. |
| solution/1700-1799/1795.Rearrange Products Table/README.md | Updated as part of this pull request. |
| solution/1700-1799/1795.Rearrange Products Table/README_EN.md | Updated as part of this pull request. |
| solution/1700-1799/1793.Maximum Score of a Good Subarray/README.md | Updated as part of this pull request. |
| solution/1700-1799/1793.Maximum Score of a Good Subarray/README_EN.md | Updated as part of this pull request. |
| solution/1700-1799/1789.Primary Department for Each Employee/README.md | Updated as part of this pull request. |
| solution/1700-1799/1789.Primary Department for Each Employee/README_EN.md | Updated as part of this pull request. |
| solution/1700-1799/1783.Grand Slam Titles/README_EN.md | Updated as part of this pull request. |
| solution/1700-1799/1773.Count Items Matching a Rule/README.md | Updated as part of this pull request. |
| solution/1700-1799/1765.Map of Highest Peak/README.md | Updated as part of this pull request. |
| solution/1700-1799/1757.Recyclable and Low Fat Products/README.md | Updated as part of this pull request. |
| solution/1700-1799/1757.Recyclable and Low Fat Products/README_EN.md | Updated as part of this pull request. |
| solution/1700-1799/1748.Sum of Unique Elements/README.md | Updated as part of this pull request. |
| solution/1700-1799/1744.Can You Eat Your Favorite Candy on Your Favorite Day/README.md | Updated as part of this pull request. |
| solution/1700-1799/1741.Find Total Time Spent by Each Employee/README.md | Updated as part of this pull request. |
| solution/1700-1799/1741.Find Total Time Spent by Each Employee/README_EN.md | Updated as part of this pull request. |
| solution/1700-1799/1732.Find the Highest Altitude/README_EN.md | Updated as part of this pull request. |
| solution/1700-1799/1729.Find Followers Count/README.md | Updated as part of this pull request. |
| solution/1700-1799/1729.Find Followers Count/README_EN.md | Updated as part of this pull request. |
| solution/1700-1799/1711.Count Good Meals/README.md | Updated as part of this pull request. |
| solution/1700-1799/1711.Count Good Meals/README_EN.md | Updated as part of this pull request. |
| solution/1700-1799/1710.Maximum Units on a Truck/README.md | Updated as part of this pull request. |
| solution/1700-1799/1709.Biggest Window Between Visits/README.md | Updated as part of this pull request. |
| solution/1600-1699/1686.Stone Game VI/README.md | Updated as part of this pull request. |
| solution/1600-1699/1686.Stone Game VI/README_EN.md | Updated as part of this pull request. |
| solution/1600-1699/1673.Find the Most Competitive Subsequence/README.md | Updated as part of this pull request. |
| solution/1600-1699/1673.Find the Most Competitive Subsequence/README_EN.md | Updated as part of this pull request. |
| solution/1600-1699/1668.Maximum Repeating Substring/README.md | Updated as part of this pull request. |
| solution/1600-1699/1657.Determine if Two Strings Are Close/README.md | Updated as part of this pull request. |
| solution/1600-1699/1657.Determine if Two Strings Are Close/README_EN.md | Updated as part of this pull request. |
| solution/1600-1699/1652.Defuse the Bomb/README.md | Updated as part of this pull request. |
| solution/1600-1699/1642.Furthest Building You Can Reach/README.md | Updated as part of this pull request. |
| solution/1600-1699/1636.Sort Array by Increasing Frequency/README.md | Updated as part of this pull request. |
| solution/1600-1699/1619.Mean of Array After Removing Some Elements/README.md | Updated as part of this pull request. |
| solution/1600-1699/1618.Maximum Font to Fit a Sentence in a Screen/README.md | Updated as part of this pull request. |
| solution/1500-1599/1599.Maximum Profit of Operating a Centennial Wheel/README.md | Updated as part of this pull request. |
| solution/1500-1599/1599.Maximum Profit of Operating a Centennial Wheel/README_EN.md | Updated as part of this pull request. |
| solution/1500-1599/1598.Crawler Log Folder/README.md | Updated as part of this pull request. |
| solution/1500-1599/1571.Warehouse Manager/README.md | Updated as part of this pull request. |
| solution/1500-1599/1571.Warehouse Manager/README_EN.md | Updated as part of this pull request. |
| solution/1500-1599/1568.Minimum Number of Days to Disconnect Island/README.md | Updated as part of this pull request. |
| solution/1500-1599/1549.The Most Recent Orders for Each Product/README.md | Updated as part of this pull request. |
| solution/1500-1599/1544.Make The String Great/README.md | Updated as part of this pull request. |
| solution/1500-1599/1509.Minimum Difference Between Largest and Smallest Value in Three Moves/README.md | Updated as part of this pull request. |
| solution/1500-1599/1506.Find Root of N-Ary Tree/README.md | Updated as part of this pull request. |
| solution/1400-1499/1491.Average Salary Excluding the Minimum and Maximum Salary/README.md | Updated as part of this pull request. |
| solution/1400-1499/1491.Average Salary Excluding the Minimum and Maximum Salary/README_EN.md | Updated as part of this pull request. |
| solution/1400-1499/1472.Design Browser History/README_EN.md | Updated as part of this pull request. |
| solution/1400-1499/1465.Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts/README.md | Updated as part of this pull request. |
| solution/1400-1499/1451.Rearrange Words in a Sentence/README.md | Updated as part of this pull request. |
| solution/1400-1499/1441.Build an Array With Stack Operations/README.md | Updated as part of this pull request. |
| solution/1400-1499/1441.Build an Array With Stack Operations/README_EN.md | Updated as part of this pull request. |
| solution/1400-1499/1438.Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit/README.md | Updated as part of this pull request. |
| solution/1400-1499/1419.Minimum Number of Frogs Croaking/README.md | Updated as part of this pull request. |
| solution/1400-1499/1412.Find the Quiet Students in All Exams/README_EN.md | Updated as part of this pull request. |
| solution/1300-1399/1378.Replace Employee ID With The Unique Identifier/README.md | Updated as part of this pull request. |
| solution/1300-1399/1352.Product of the Last K Numbers/README.md | Updated as part of this pull request. |
| solution/1300-1399/1333.Filter Restaurants by Vegan-Friendly, Price and Distance/README.md | Updated as part of this pull request. |
| solution/1200-1299/1260.Shift 2D Grid/README.md | Updated as part of this pull request. |
| solution/1200-1299/1250.Check If It Is a Good Array/README.md | Updated as part of this pull request. |
| solution/1200-1299/1232.Check If It Is a Straight Line/README.md | Updated as part of this pull request. |
| solution/1200-1299/1232.Check If It Is a Straight Line/README_EN.md | Updated as part of this pull request. |
| solution/1100-1199/1189.Maximum Number of Balloons/README.md | Updated as part of this pull request. |
| solution/1100-1199/1189.Maximum Number of Balloons/README_EN.md | Updated as part of this pull request. |
| solution/1100-1199/1182.Shortest Distance to Target Color/README_EN.md | Updated as part of this pull request. |
| solution/1100-1199/1167.Minimum Cost to Connect Sticks/README.md | Updated as part of this pull request. |
| solution/1100-1199/1167.Minimum Cost to Connect Sticks/README_EN.md | Updated as part of this pull request. |
| solution/1100-1199/1153.String Transforms Into Another String/README.md | Updated as part of this pull request. |
| solution/1100-1199/1153.String Transforms Into Another String/README_EN.md | Updated as part of this pull request. |
| solution/1100-1199/1152.Analyze User Website Visit Pattern/README.md | Updated as part of this pull request. |
| solution/1100-1199/1152.Analyze User Website Visit Pattern/README_EN.md | Updated as part of this pull request. |
| solution/1100-1199/1140.Stone Game II/README.md | Updated as part of this pull request. |
| solution/1100-1199/1140.Stone Game II/README_EN.md | Updated as part of this pull request. |
| solution/1100-1199/1125.Smallest Sufficient Team/README.md | Updated as part of this pull request. |
| solution/1100-1199/1115.Print FooBar Alternately/README.md | Updated as part of this pull request. |
| solution/1100-1199/1115.Print FooBar Alternately/README_EN.md | Updated as part of this pull request. |
| solution/1100-1199/1106.Parsing A Boolean Expression/README.md | Updated as part of this pull request. |
| solution/1100-1199/1106.Parsing A Boolean Expression/README_EN.md | Updated as part of this pull request. |
| solution/1000-1099/1095.Find in Mountain Array/README.md | Updated as part of this pull request. |
| solution/1000-1099/1095.Find in Mountain Array/README_EN.md | Updated as part of this pull request. |
| solution/1000-1099/1088.Confusing Number II/README.md | Updated as part of this pull request. |
| solution/1000-1099/1047.Remove All Adjacent Duplicates In String/README.md | Updated as part of this pull request. |
| solution/1000-1099/1046.Last Stone Weight/README.md | Updated as part of this pull request. |
| solution/1000-1099/1023.Camelcase Matching/README.md | Updated as part of this pull request. |
| solution/0900-0999/0950.Reveal Cards In Increasing Order/README.md | Updated as part of this pull request. |
| solution/0900-0999/0943.Find the Shortest Superstring/README.md | Updated as part of this pull request. |
| solution/0900-0999/0942.DI String Match/README.md | Updated as part of this pull request. |
| solution/0900-0999/0942.DI String Match/README_EN.md | Updated as part of this pull request. |
| solution/0900-0999/0930.Binary Subarrays With Sum/README.md | Updated as part of this pull request. |
| solution/0900-0999/0927.Three Equal Parts/README_EN.md | Updated as part of this pull request. |
| solution/0900-0999/0915.Partition Array into Disjoint Intervals/README.md | Updated as part of this pull request. |
| solution/0900-0999/0915.Partition Array into Disjoint Intervals/README_EN.md | Updated as part of this pull request. |
| solution/0900-0999/0914.X of a Kind in a Deck of Cards/README.md | Updated as part of this pull request. |
| solution/0800-0899/0884.Uncommon Words from Two Sentences/README_EN.md | Updated as part of this pull request. |
| solution/0800-0899/0883.Projection Area of 3D Shapes/README.md | Updated as part of this pull request. |
| solution/0800-0899/0883.Projection Area of 3D Shapes/README_EN.md | Updated as part of this pull request. |
| solution/0800-0899/0859.Buddy Strings/README.md | Updated as part of this pull request. |
| solution/0800-0899/0841.Keys and Rooms/README_EN.md | Updated as part of this pull request. |
| solution/0800-0899/0817.Linked List Components/README.md | Updated as part of this pull request. |
| solution/0800-0899/0811.Subdomain Visit Count/README.md | Updated as part of this pull request. |
| solution/0700-0799/0767.Reorganize String/README.md | Updated as part of this pull request. |
| solution/0700-0799/0736.Parse Lisp Expression/README_EN.md | Updated as part of this pull request. |
| solution/0700-0799/0706.Design HashMap/README.md | Updated as part of this pull request. |
| solution/0600-0699/0672.Bulb Switcher II/README.md | Updated as part of this pull request. |
| solution/0600-0699/0659.Split Array into Consecutive Subsequences/README.md | Updated as part of this pull request. |
| solution/0600-0699/0648.Replace Words/README.md | Updated as part of this pull request. |
| solution/0600-0699/0648.Replace Words/README_EN.md | Updated as part of this pull request. |
| solution/0600-0699/0604.Design Compressed String Iterator/README.md | Updated as part of this pull request. |
| solution/0500-0599/0599.Minimum Index Sum of Two Lists/README.md | Updated as part of this pull request. |
| solution/0500-0599/0599.Minimum Index Sum of Two Lists/README_EN.md | Updated as part of this pull request. |
| solution/0500-0599/0582.Kill Process/README.md | Updated as part of this pull request. |
| solution/0500-0599/0582.Kill Process/README_EN.md | Updated as part of this pull request. |
| solution/0500-0599/0572.Subtree of Another Tree/README.md | Updated as part of this pull request. |
| solution/0500-0599/0572.Subtree of Another Tree/README_EN.md | Updated as part of this pull request. |
| solution/0500-0599/0540.Single Element in a Sorted Array/README_EN.md | Updated as part of this pull request. |
| solution/0500-0599/0530.Minimum Absolute Difference in BST/README_EN.md | Updated as part of this pull request. |
| solution/0500-0599/0521.Longest Uncommon Subsequence I/README.md | Updated as part of this pull request. |
| solution/0500-0599/0521.Longest Uncommon Subsequence I/README_EN.md | Updated as part of this pull request. |
| solution/0500-0599/0520.Detect Capital/README.md | Updated as part of this pull request. |
| solution/0500-0599/0520.Detect Capital/README_EN.md | Updated as part of this pull request. |
| solution/0500-0599/0518.Coin Change II/README.md | Updated as part of this pull request. |
| solution/0500-0599/0518.Coin Change II/README_EN.md | Updated as part of this pull request. |
| solution/0400-0499/0484.Find Permutation/README.md | Updated as part of this pull request. |
| solution/0400-0499/0468.Validate IP Address/README.md | Updated as part of this pull request. |
| solution/0400-0499/0468.Validate IP Address/README_EN.md | Updated as part of this pull request. |
| solution/0400-0499/0447.Number of Boomerangs/README.md | Updated as part of this pull request. |
| solution/0400-0499/0439.Ternary Expression Parser/README.md | Updated as part of this pull request. |
| solution/0400-0499/0422.Valid Word Square/README_EN.md | Updated as part of this pull request. |
| solution/0400-0499/0414.Third Maximum Number/README.md | Updated as part of this pull request. |
| solution/0400-0499/0414.Third Maximum Number/README_EN.md | Updated as part of this pull request. |
| solution/0400-0499/0413.Arithmetic Slices/README.md | Updated as part of this pull request. |
| solution/0400-0499/0413.Arithmetic Slices/README_EN.md | Updated as part of this pull request. |
| solution/0300-0399/0383.Ransom Note/README.md | Updated as part of this pull request. |
| solution/0300-0399/0374.Guess Number Higher or Lower/README.md | Updated as part of this pull request. |
| solution/0300-0399/0374.Guess Number Higher or Lower/README_EN.md | Updated as part of this pull request. |
| solution/0300-0399/0338.Counting Bits/README.md | Updated as part of this pull request. |
| solution/0300-0399/0331.Verify Preorder Serialization of a Binary Tree/README.md | Updated as part of this pull request. |
| solution/0300-0399/0331.Verify Preorder Serialization of a Binary Tree/README_EN.md | Updated as part of this pull request. |
| solution/0300-0399/0313.Super Ugly Number/README.md | Updated as part of this pull request. |
| solution/0200-0299/0243.Shortest Word Distance/README.md | Updated as part of this pull request. |
| solution/0200-0299/0227.Basic Calculator II/README.md | Updated as part of this pull request. |
| solution/0200-0299/0227.Basic Calculator II/README_EN.md | Updated as part of this pull request. |
| solution/0100-0199/0182.Duplicate Emails/README.md | Updated as part of this pull request. |
| solution/0100-0199/0182.Duplicate Emails/README_EN.md | Updated as part of this pull request. |
| solution/0100-0199/0177.Nth Highest Salary/README.md | Updated as part of this pull request. |
| solution/0100-0199/0176.Second Highest Salary/README.md | Updated as part of this pull request. |
| solution/0100-0199/0175.Combine Two Tables/README.md | Updated as part of this pull request. |
| solution/0100-0199/0175.Combine Two Tables/README_EN.md | Updated as part of this pull request. |
| solution/0100-0199/0171.Excel Sheet Column Number/README.md | Updated as part of this pull request. |
| solution/0100-0199/0171.Excel Sheet Column Number/README_EN.md | Updated as part of this pull request. |
| solution/0100-0199/0123.Best Time to Buy and Sell Stock III/README.md | Updated as part of this pull request. |
| solution/0100-0199/0123.Best Time to Buy and Sell Stock III/README_EN.md | Updated as part of this pull request. |
| solution/0100-0199/0113.Path Sum II/README.md | Updated as part of this pull request. |
| solution/0100-0199/0113.Path Sum II/README_EN.md | Updated as part of this pull request. |
| solution/0000-0099/0060.Permutation Sequence/README.md | Updated as part of this pull request. |
| lcci/16.02.Words Frequency/README.md | Updated as part of this pull request. |
| lcci/16.02.Words Frequency/README_EN.md | Updated as part of this pull request. |
| lcci/03.04.Implement Queue using Stacks/README_EN.md | Updated as part of this pull request. |
| lcci/03.03.Stack of Plates/README.md | Updated as part of this pull request. |
| lcci/03.02.Min Stack/README.md | Updated as part of this pull request. |
| lcci/03.02.Min Stack/README_EN.md | Updated as part of this pull request. |
| lcci/01.08.Zero Matrix/README.md | Updated as part of this pull request. |
| lcci/01.08.Zero Matrix/README_EN.md | Updated as part of this pull request. |
Review effort: Balanced
| <!-- thinking:end --> | ||
|
|
||
| 我们可以按照薪水降序排列,然后使用 `LIMIT` 语句来获取第二高的薪水,如果不存在第二高的薪水,那么就返回 `null`。 | ||
| 我们可以按照薪水降序排列,然后使用 $\textit{LIMIT}$ 语句来获取第二高的薪水,如果不存在第二高的薪水,那么就返回 `null`。 |
| <!-- thinking:end --> | ||
|
|
||
| 我们可以先对 `salary` 进行降序排序,然后使用 `LIMIT` 语句获取第 $n$ 高的工资。 | ||
| 我们可以先对 `salary` 进行降序排序,然后使用 $\textit{LIMIT}$ 语句获取第 $n$ 高的工资。 |
| <!-- thinking:end --> | ||
|
|
||
| 我们可以使用 `GROUP BY` 语句,按照 `email` 字段进行分组,然后使用 `HAVING` 语句,筛选出现次数大于 $1$ 的 `email`。 | ||
| 我们可以使用 `GROUP BY` 语句,按照 $\textit{email}$ 字段进行分组,然后使用 $\textit{HAVING}$ 语句,筛选出现次数大于 $1$ 的 $\textit{email}$。 |
| <!-- thinking:end --> | ||
|
|
||
| We can use the `GROUP BY` statement to group the data by the `email` field, and then use the `HAVING` statement to filter out the `email` addresses that appear more than once. | ||
| We can use the `GROUP BY` statement to group the data by the $\textit{email}$ field, and then use the $\textit{HAVING}$ statement to filter out the $\textit{email}$ addresses that appear more than once. |
| > $\textit{let}$ binds names and inner scopes shadow outer ones, so each variable keeps a stack of values that must be popped after the form. $\textit{add}$/$\textit{mult}$ just evaluate two subexpressions. | ||
| > | ||
| > $\textit{eval}$ branches on the current token: a bare name or integer, or a parenthesized `let`/`add`/`mult`. Bindings go through $\textit{scope}$ as push/pop. One scan evaluates the expression. | ||
| > $\textit{eval}$ branches on the current token: a bare name or integer, or a parenthesized $\textit{let}$/$\textit{add}$/$\textit{mult}$. Bindings go through $\textit{scope}$ as push/pop. One scan evaluates the expression. |
| @@ -88,7 +88,7 @@ Thus only customers 1 and 4 have positive revenue in the year 2021. | |||
|
|
|||
| <!-- thinking:end --> | |||
|
|
|||
| We can directly use the `WHERE` clause to filter out the customers whose `year` is `2021` and `revenue` is greater than $0$. | |||
| We can directly use the $\textit{WHERE}$ clause to filter out the customers whose $\textit{year}$ is `2021` and $\textit{revenue}$ is greater than $0$. | |||
| @@ -70,7 +70,7 @@ tags: | |||
|
|
|||
| > **思考** | |||
| > | |||
| > `AB`、`CD` 可删除且可能连锁。反复 `replace` 最坏平方。相邻可消时与括号匹配相同,栈顶与当前字符恰好组成这两对则弹出,否则入栈。 | |||
| > $\textit{AB}$、 $\textit{CD}$ 可删除且可能连锁。反复 `replace` 最坏平方。相邻可消时与括号匹配相同,栈顶与当前字符恰好组成这两对则弹出,否则入栈。 | |||
| @@ -68,7 +68,7 @@ It can be shown that it is the minimum length that we can obtain.</pre> | |||
|
|
|||
| > **Thinking** | |||
| > | |||
| > `AB` and `CD` may be deleted and can cascade. Repeated `replace` is quadratic in the worst case. The rule matches parentheses: pop when the top and the current character form one of those pairs, otherwise push. | |||
| > $\textit{AB}$ and $\textit{CD}$ may be deleted and can cascade. Repeated `replace` is quadratic in the worst case. The rule matches parentheses: pop when the top and the current character form one of those pairs, otherwise push. | |||
| @@ -86,7 +86,7 @@ Loans table: | |||
|
|
|||
| <!-- thinking:end --> | |||
|
|
|||
| 我们可以对 `Loans` 表按照 `user_id` 进行分组,找出既包含 `Refinance` 又包含 `Mortgage` 的用户,然后按照 `user_id` 进行排序。 | |||
| 我们可以对 `Loans` 表按照 `user_id` 进行分组,找出既包含 $\textit{Refinance}$ 又包含 `Mortgage` 的用户,然后按照 `user_id` 进行排序。 | |||
| @@ -85,7 +85,7 @@ Output table is ordered by user_id in ascending order. | |||
|
|
|||
| <!-- thinking:end --> | |||
|
|
|||
| We can group the `Loans` table by `user_id` to find users who have both `Refinance` and `Mortgage`. Then, sort the results by `user_id`. | |||
| We can group the `Loans` table by `user_id` to find users who have both $\textit{Refinance}$ and `Mortgage`. Then, sort the results by `user_id`. | |||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Solution prose often writes the same name both as
`nums`and as$\textit{nums}$. This pass keeps one form: if a solution already uses$\textit{...}$for a name, or the name appears on a time/space complexity line, the remaining pure-identifier backticks become math as well. Calls, indexed expressions, and keywords such astrue/falsestay in backticks. Three duplicated 「的」 in solution prose are removed (「上次出现的的位置」, 「一个字母的的情况」, 「最小值的的差值」).Problem statements and code fences are unchanged.
Type
Checklist
For new or updated solutions:
README.md/README_EN.mdfollowsolution/template.mdSolution.*files and code tabs are unchangedAGENTS.md