Files
halfrost 7aa47218b7 Update
2023-03-27 22:22:44 -07:00

18 KiB

title type weight
2.12 Math docs 12

Math

No. Title Solution Difficulty TimeComplexity SpaceComplexity Favorite Acceptance
0002 Add Two Numbers [Go]({{< relref "/ChapterFour/0001~0099/0002.Add-Two-Numbers.md" >}}) Medium O(n) O(1) 40.3%
0007 Reverse Integer [Go]({{< relref "/ChapterFour/0001~0099/0007.Reverse-Integer.md" >}}) Medium 27.4%
0009 Palindrome Number [Go]({{< relref "/ChapterFour/0001~0099/0009.Palindrome-Number.md" >}}) Easy 53.5%
0012 Integer to Roman [Go]({{< relref "/ChapterFour/0001~0099/0012.Integer-to-Roman.md" >}}) Medium 62.0%
0013 Roman to Integer [Go]({{< relref "/ChapterFour/0001~0099/0013.Roman-to-Integer.md" >}}) Easy 58.5%
0029 Divide Two Integers [Go]({{< relref "/ChapterFour/0001~0099/0029.Divide-Two-Integers.md" >}}) Medium 17.2%
0043 Multiply Strings [Go]({{< relref "/ChapterFour/0001~0099/0043.Multiply-Strings.md" >}}) Medium 39.2%
0048 Rotate Image [Go]({{< relref "/ChapterFour/0001~0099/0048.Rotate-Image.md" >}}) Medium 70.9%
0050 Pow(x, n) [Go]({{< relref "/ChapterFour/0001~0099/0050.Powx-n.md" >}}) Medium O(log n) O(1) 33.0%
0060 Permutation Sequence [Go]({{< relref "/ChapterFour/0001~0099/0060.Permutation-Sequence.md" >}}) Hard O(n log n) O(1) 44.4%
0062 Unique Paths [Go]({{< relref "/ChapterFour/0001~0099/0062.Unique-Paths.md" >}}) Medium 62.6%
0066 Plus One [Go]({{< relref "/ChapterFour/0001~0099/0066.Plus-One.md" >}}) Easy 43.7%
0067 Add Binary [Go]({{< relref "/ChapterFour/0001~0099/0067.Add-Binary.md" >}}) Easy 52.4%
0069 Sqrt(x) [Go]({{< relref "/ChapterFour/0001~0099/0069.Sqrtx.md" >}}) Easy O(log n) O(1) 37.4%
0070 Climbing Stairs [Go]({{< relref "/ChapterFour/0001~0099/0070.Climbing-Stairs.md" >}}) Easy 52.2%
0089 Gray Code [Go]({{< relref "/ChapterFour/0001~0099/0089.Gray-Code.md" >}}) Medium 57.1%
0096 Unique Binary Search Trees [Go]({{< relref "/ChapterFour/0001~0099/0096.Unique-Binary-Search-Trees.md" >}}) Medium 59.6%
0150 Evaluate Reverse Polish Notation [Go]({{< relref "/ChapterFour/0100~0199/0150.Evaluate-Reverse-Polish-Notation.md" >}}) Medium 45.7%
0168 Excel Sheet Column Title [Go]({{< relref "/ChapterFour/0100~0199/0168.Excel-Sheet-Column-Title.md" >}}) Easy 35.5%
0171 Excel Sheet Column Number [Go]({{< relref "/ChapterFour/0100~0199/0171.Excel-Sheet-Column-Number.md" >}}) Easy 62.0%
0172 Factorial Trailing Zeroes [Go]({{< relref "/ChapterFour/0100~0199/0172.Factorial-Trailing-Zeroes.md" >}}) Medium 42.2%
0189 Rotate Array [Go]({{< relref "/ChapterFour/0100~0199/0189.Rotate-Array.md" >}}) Medium 39.4%
0202 Happy Number [Go]({{< relref "/ChapterFour/0200~0299/0202.Happy-Number.md" >}}) Easy O(log n) O(1) 54.8%
0204 Count Primes [Go]({{< relref "/ChapterFour/0200~0299/0204.Count-Primes.md" >}}) Medium 33.1%
0223 Rectangle Area [Go]({{< relref "/ChapterFour/0200~0299/0223.Rectangle-Area.md" >}}) Medium 45.1%
0224 Basic Calculator [Go]({{< relref "/ChapterFour/0200~0299/0224.Basic-Calculator.md" >}}) Hard O(n) O(n) 42.4%
0227 Basic Calculator II [Go]({{< relref "/ChapterFour/0200~0299/0227.Basic-Calculator-II.md" >}}) Medium 42.4%
0231 Power of Two [Go]({{< relref "/ChapterFour/0200~0299/0231.Power-of-Two.md" >}}) Easy O(1) O(1) 46.0%
0258 Add Digits [Go]({{< relref "/ChapterFour/0200~0299/0258.Add-Digits.md" >}}) Easy 64.0%
0263 Ugly Number [Go]({{< relref "/ChapterFour/0200~0299/0263.Ugly-Number.md" >}}) Easy O(log n) O(1) 42.3%
0264 Ugly Number II [Go]({{< relref "/ChapterFour/0200~0299/0264.Ugly-Number-II.md" >}}) Medium 46.2%
0268 Missing Number [Go]({{< relref "/ChapterFour/0200~0299/0268.Missing-Number.md" >}}) Easy 62.5%
0279 Perfect Squares [Go]({{< relref "/ChapterFour/0200~0299/0279.Perfect-Squares.md" >}}) Medium 52.6%
0319 Bulb Switcher [Go]({{< relref "/ChapterFour/0300~0399/0319.Bulb-Switcher.md" >}}) Medium 48.3%
0326 Power of Three [Go]({{< relref "/ChapterFour/0300~0399/0326.Power-of-Three.md" >}}) Easy O(1) O(1) 45.5%
0342 Power of Four [Go]({{< relref "/ChapterFour/0300~0399/0342.Power-of-Four.md" >}}) Easy 46.1%
0343 Integer Break [Go]({{< relref "/ChapterFour/0300~0399/0343.Integer-Break.md" >}}) Medium O(n^2) O(n) 56.0%
0357 Count Numbers with Unique Digits [Go]({{< relref "/ChapterFour/0300~0399/0357.Count-Numbers-with-Unique-Digits.md" >}}) Medium O(1) O(1) 51.8%
0367 Valid Perfect Square [Go]({{< relref "/ChapterFour/0300~0399/0367.Valid-Perfect-Square.md" >}}) Easy 43.3%
0368 Largest Divisible Subset [Go]({{< relref "/ChapterFour/0300~0399/0368.Largest-Divisible-Subset.md" >}}) Medium 41.5%
0371 Sum of Two Integers [Go]({{< relref "/ChapterFour/0300~0399/0371.Sum-of-Two-Integers.md" >}}) Medium 50.7%
0372 Super Pow [Go]({{< relref "/ChapterFour/0300~0399/0372.Super-Pow.md" >}}) Medium 36.4%
0382 Linked List Random Node [Go]({{< relref "/ChapterFour/0300~0399/0382.Linked-List-Random-Node.md" >}}) Medium 62.8%
0384 Shuffle an Array [Go]({{< relref "/ChapterFour/0300~0399/0384.Shuffle-an-Array.md" >}}) Medium 57.8%
0390 Elimination Game [Go]({{< relref "/ChapterFour/0300~0399/0390.Elimination-Game.md" >}}) Medium 46.1%
0396 Rotate Function [Go]({{< relref "/ChapterFour/0300~0399/0396.Rotate-Function.md" >}}) Medium 41.1%
0400 Nth Digit [Go]({{< relref "/ChapterFour/0400~0499/0400.Nth-Digit.md" >}}) Medium 34.1%
0405 Convert a Number to Hexadecimal [Go]({{< relref "/ChapterFour/0400~0499/0405.Convert-a-Number-to-Hexadecimal.md" >}}) Easy 46.7%
0412 Fizz Buzz [Go]({{< relref "/ChapterFour/0400~0499/0412.Fizz-Buzz.md" >}}) Easy 69.9%
0423 Reconstruct Original Digits from English [Go]({{< relref "/ChapterFour/0400~0499/0423.Reconstruct-Original-Digits-from-English.md" >}}) Medium 51.3%
0441 Arranging Coins [Go]({{< relref "/ChapterFour/0400~0499/0441.Arranging-Coins.md" >}}) Easy 46.2%
0445 Add Two Numbers II [Go]({{< relref "/ChapterFour/0400~0499/0445.Add-Two-Numbers-II.md" >}}) Medium 59.6%
0447 Number of Boomerangs [Go]({{< relref "/ChapterFour/0400~0499/0447.Number-of-Boomerangs.md" >}}) Medium 54.9%
0453 Minimum Moves to Equal Array Elements [Go]({{< relref "/ChapterFour/0400~0499/0453.Minimum-Moves-to-Equal-Array-Elements.md" >}}) Medium 56.0%
0458 Poor Pigs [Go]({{< relref "/ChapterFour/0400~0499/0458.Poor-Pigs.md" >}}) Hard 62.8%
0462 Minimum Moves to Equal Array Elements II [Go]({{< relref "/ChapterFour/0400~0499/0462.Minimum-Moves-to-Equal-Array-Elements-II.md" >}}) Medium 60.0%
0470 Implement Rand10() Using Rand7() [Go]({{< relref "/ChapterFour/0400~0499/0470.Implement-Rand10-Using-Rand7.md" >}}) Medium 46.4%
0477 Total Hamming Distance [Go]({{< relref "/ChapterFour/0400~0499/0477.Total-Hamming-Distance.md" >}}) Medium 52.2%
0478 Generate Random Point in a Circle [Go]({{< relref "/ChapterFour/0400~0499/0478.Generate-Random-Point-in-a-Circle.md" >}}) Medium 39.6%
0483 Smallest Good Base [Go]({{< relref "/ChapterFour/0400~0499/0483.Smallest-Good-Base.md" >}}) Hard 38.7%
0492 Construct the Rectangle [Go]({{< relref "/ChapterFour/0400~0499/0492.Construct-the-Rectangle.md" >}}) Easy 54.7%
0497 Random Point in Non-overlapping Rectangles [Go]({{< relref "/ChapterFour/0400~0499/0497.Random-Point-in-Non-overlapping-Rectangles.md" >}}) Medium 39.4%
0504 Base 7 [Go]({{< relref "/ChapterFour/0500~0599/0504.Base-7.md" >}}) Easy 48.5%
0507 Perfect Number [Go]({{< relref "/ChapterFour/0500~0599/0507.Perfect-Number.md" >}}) Easy 37.7%
0509 Fibonacci Number [Go]({{< relref "/ChapterFour/0500~0599/0509.Fibonacci-Number.md" >}}) Easy 69.8%
0519 Random Flip Matrix [Go]({{< relref "/ChapterFour/0500~0599/0519.Random-Flip-Matrix.md" >}}) Medium 40.0%
0523 Continuous Subarray Sum [Go]({{< relref "/ChapterFour/0500~0599/0523.Continuous-Subarray-Sum.md" >}}) Medium 28.5%
0528 Random Pick with Weight [Go]({{< relref "/ChapterFour/0500~0599/0528.Random-Pick-with-Weight.md" >}}) Medium 46.1%
0537 Complex Number Multiplication [Go]({{< relref "/ChapterFour/0500~0599/0537.Complex-Number-Multiplication.md" >}}) Medium 71.4%
0598 Range Addition II [Go]({{< relref "/ChapterFour/0500~0599/0598.Range-Addition-II.md" >}}) Easy 55.3%
0628 Maximum Product of Three Numbers [Go]({{< relref "/ChapterFour/0600~0699/0628.Maximum-Product-of-Three-Numbers.md" >}}) Easy O(n) O(1) 45.9%
0633 Sum of Square Numbers [Go]({{< relref "/ChapterFour/0600~0699/0633.Sum-of-Square-Numbers.md" >}}) Medium 34.4%
0667 Beautiful Arrangement II [Go]({{< relref "/ChapterFour/0600~0699/0667.Beautiful-Arrangement-II.md" >}}) Medium 59.8%
0668 Kth Smallest Number in Multiplication Table [Go]({{< relref "/ChapterFour/0600~0699/0668.Kth-Smallest-Number-in-Multiplication-Table.md" >}}) Hard 51.4%
0710 Random Pick with Blacklist [Go]({{< relref "/ChapterFour/0700~0799/0710.Random-Pick-with-Blacklist.md" >}}) Hard 33.5%
0728 Self Dividing Numbers [Go]({{< relref "/ChapterFour/0700~0799/0728.Self-Dividing-Numbers.md" >}}) Easy 77.9%
0762 Prime Number of Set Bits in Binary Representation [Go]({{< relref "/ChapterFour/0700~0799/0762.Prime-Number-of-Set-Bits-in-Binary-Representation.md" >}}) Easy 68.0%
0775 Global and Local Inversions [Go]({{< relref "/ChapterFour/0700~0799/0775.Global-and-Local-Inversions.md" >}}) Medium 43.3%
0781 Rabbits in Forest [Go]({{< relref "/ChapterFour/0700~0799/0781.Rabbits-in-Forest.md" >}}) Medium 54.8%
0793 Preimage Size of Factorial Zeroes Function [Go]({{< relref "/ChapterFour/0700~0799/0793.Preimage-Size-of-Factorial-Zeroes-Function.md" >}}) Hard 43.2%
0810 Chalkboard XOR Game [Go]({{< relref "/ChapterFour/0800~0899/0810.Chalkboard-XOR-Game.md" >}}) Hard 55.7%
0812 Largest Triangle Area [Go]({{< relref "/ChapterFour/0800~0899/0812.Largest-Triangle-Area.md" >}}) Easy 59.9%
0836 Rectangle Overlap [Go]({{< relref "/ChapterFour/0800~0899/0836.Rectangle-Overlap.md" >}}) Easy 43.9%
0869 Reordered Power of 2 [Go]({{< relref "/ChapterFour/0800~0899/0869.Reordered-Power-of-2.md" >}}) Medium 63.5%
0877 Stone Game [Go]({{< relref "/ChapterFour/0800~0899/0877.Stone-Game.md" >}}) Medium 69.7%
0878 Nth Magical Number [Go]({{< relref "/ChapterFour/0800~0899/0878.Nth-Magical-Number.md" >}}) Hard 35.4%
0887 Super Egg Drop [Go]({{< relref "/ChapterFour/0800~0899/0887.Super-Egg-Drop.md" >}}) Hard 27.1%
0891 Sum of Subsequence Widths [Go]({{< relref "/ChapterFour/0800~0899/0891.Sum-of-Subsequence-Widths.md" >}}) Hard O(n log n) O(1) 36.6%
0892 Surface Area of 3D Shapes [Go]({{< relref "/ChapterFour/0800~0899/0892.Surface-Area-of-3D-Shapes.md" >}}) Easy 64.1%
0910 Smallest Range II [Go]({{< relref "/ChapterFour/0900~0999/0910.Smallest-Range-II.md" >}}) Medium 35.1%
0914 X of a Kind in a Deck of Cards [Go]({{< relref "/ChapterFour/0900~0999/0914.X-of-a-Kind-in-a-Deck-of-Cards.md" >}}) Easy 31.2%
0920 Number of Music Playlists [Go]({{< relref "/ChapterFour/0900~0999/0920.Number-of-Music-Playlists.md" >}}) Hard 50.8%
0927 Three Equal Parts [Go]({{< relref "/ChapterFour/0900~0999/0927.Three-Equal-Parts.md" >}}) Hard 39.6%
0952 Largest Component Size by Common Factor [Go]({{< relref "/ChapterFour/0900~0999/0952.Largest-Component-Size-by-Common-Factor.md" >}}) Hard 40.0%
0970 Powerful Integers [Go]({{< relref "/ChapterFour/0900~0999/0970.Powerful-Integers.md" >}}) Medium 43.6%
0973 K Closest Points to Origin [Go]({{< relref "/ChapterFour/0900~0999/0973.K-Closest-Points-to-Origin.md" >}}) Medium 65.7%
0976 Largest Perimeter Triangle [Go]({{< relref "/ChapterFour/0900~0999/0976.Largest-Perimeter-Triangle.md" >}}) Easy O(n log n) O(log n) 54.6%
0989 Add to Array-Form of Integer [Go]({{< relref "/ChapterFour/0900~0999/0989.Add-to-Array-Form-of-Integer.md" >}}) Easy 47.1%
0991 Broken Calculator [Go]({{< relref "/ChapterFour/0900~0999/0991.Broken-Calculator.md" >}}) Medium 54.1%
0996 Number of Squareful Arrays [Go]({{< relref "/ChapterFour/0900~0999/0996.Number-of-Squareful-Arrays.md" >}}) Hard O(n log n) O(n) 49.2%
1006 Clumsy Factorial [Go]({{< relref "/ChapterFour/1000~1099/1006.Clumsy-Factorial.md" >}}) Medium 55.4%
1017 Convert to Base -2 [Go]({{< relref "/ChapterFour/1000~1099/1017.Convert-to-Base-2.md" >}}) Medium 60.8%
1025 Divisor Game [Go]({{< relref "/ChapterFour/1000~1099/1025.Divisor-Game.md" >}}) Easy O(1) O(1) 67.6%
1030 Matrix Cells in Distance Order [Go]({{< relref "/ChapterFour/1000~1099/1030.Matrix-Cells-in-Distance-Order.md" >}}) Easy 69.7%
1037 Valid Boomerang [Go]({{< relref "/ChapterFour/1000~1099/1037.Valid-Boomerang.md" >}}) Easy 37.0%
1040 Moving Stones Until Consecutive II [Go]({{< relref "/ChapterFour/1000~1099/1040.Moving-Stones-Until-Consecutive-II.md" >}}) Medium 55.9%
1073 Adding Two Negabinary Numbers [Go]({{< relref "/ChapterFour/1000~1099/1073.Adding-Two-Negabinary-Numbers.md" >}}) Medium 36.5%
1093 Statistics from a Large Sample [Go]({{< relref "/ChapterFour/1000~1099/1093.Statistics-from-a-Large-Sample.md" >}}) Medium 43.6%
1104 Path In Zigzag Labelled Binary Tree [Go]({{< relref "/ChapterFour/1100~1199/1104.Path-In-Zigzag-Labelled-Binary-Tree.md" >}}) Medium 75.1%
1137 N-th Tribonacci Number [Go]({{< relref "/ChapterFour/1100~1199/1137.N-th-Tribonacci-Number.md" >}}) Easy 63.8%
1154 Day of the Year [Go]({{< relref "/ChapterFour/1100~1199/1154.Day-of-the-Year.md" >}}) Easy 49.6%
1175 Prime Arrangements [Go]({{< relref "/ChapterFour/1100~1199/1175.Prime-Arrangements.md" >}}) Easy 54.6%
1185 Day of the Week [Go]({{< relref "/ChapterFour/1100~1199/1185.Day-of-the-Week.md" >}}) Easy 57.5%
1201 Ugly Number III [Go]({{< relref "/ChapterFour/1200~1299/1201.Ugly-Number-III.md" >}}) Medium 28.9%
1217 Minimum Cost to Move Chips to The Same Position [Go]({{< relref "/ChapterFour/1200~1299/1217.Minimum-Cost-to-Move-Chips-to-The-Same-Position.md" >}}) Easy 71.9%
1232 Check If It Is a Straight Line [Go]({{< relref "/ChapterFour/1200~1299/1232.Check-If-It-Is-a-Straight-Line.md" >}}) Easy 40.4%
1252 Cells with Odd Values in a Matrix [Go]({{< relref "/ChapterFour/1200~1299/1252.Cells-with-Odd-Values-in-a-Matrix.md" >}}) Easy 78.5%
1266 Minimum Time Visiting All Points [Go]({{< relref "/ChapterFour/1200~1299/1266.Minimum-Time-Visiting-All-Points.md" >}}) Easy 79.1%
1281 Subtract the Product and Sum of Digits of an Integer [Go]({{< relref "/ChapterFour/1200~1299/1281.Subtract-the-Product-and-Sum-of-Digits-of-an-Integer.md" >}}) Easy 86.7%
1290 Convert Binary Number in a Linked List to Integer [Go]({{< relref "/ChapterFour/1200~1299/1290.Convert-Binary-Number-in-a-Linked-List-to-Integer.md" >}}) Easy 82.1%
1304 Find N Unique Integers Sum up to Zero [Go]({{< relref "/ChapterFour/1300~1399/1304.Find-N-Unique-Integers-Sum-up-to-Zero.md" >}}) Easy 77.0%
1317 Convert Integer to the Sum of Two No-Zero Integers [Go]({{< relref "/ChapterFour/1300~1399/1317.Convert-Integer-to-the-Sum-of-Two-No-Zero-Integers.md" >}}) Easy 55.4%
1442 Count Triplets That Can Form Two Arrays of Equal XOR [Go]({{< relref "/ChapterFour/1400~1499/1442.Count-Triplets-That-Can-Form-Two-Arrays-of-Equal-XOR.md" >}}) Medium 76.1%
1486 XOR Operation in an Array [Go]({{< relref "/ChapterFour/1400~1499/1486.XOR-Operation-in-an-Array.md" >}}) Easy 84.6%
1512 Number of Good Pairs [Go]({{< relref "/ChapterFour/1500~1599/1512.Number-of-Good-Pairs.md" >}}) Easy 88.2%
1518 Water Bottles [Go]({{< relref "/ChapterFour/1500~1599/1518.Water-Bottles.md" >}}) Easy 60.4%
1551 Minimum Operations to Make Array Equal [Go]({{< relref "/ChapterFour/1500~1599/1551.Minimum-Operations-to-Make-Array-Equal.md" >}}) Medium 81.5%
1573 Number of Ways to Split a String [Go]({{< relref "/ChapterFour/1500~1599/1573.Number-of-Ways-to-Split-a-String.md" >}}) Medium 32.5%
1641 Count Sorted Vowel Strings [Go]({{< relref "/ChapterFour/1600~1699/1641.Count-Sorted-Vowel-Strings.md" >}}) Medium 77.4%
1648 Sell Diminishing-Valued Colored Balls [Go]({{< relref "/ChapterFour/1600~1699/1648.Sell-Diminishing-Valued-Colored-Balls.md" >}}) Medium 30.5%
1680 Concatenation of Consecutive Binary Numbers [Go]({{< relref "/ChapterFour/1600~1699/1680.Concatenation-of-Consecutive-Binary-Numbers.md" >}}) Medium 57.0%
1685 Sum of Absolute Differences in a Sorted Array [Go]({{< relref "/ChapterFour/1600~1699/1685.Sum-of-Absolute-Differences-in-a-Sorted-Array.md" >}}) Medium 63.6%
1688 Count of Matches in Tournament [Go]({{< relref "/ChapterFour/1600~1699/1688.Count-of-Matches-in-Tournament.md" >}}) Easy 83.2%
1690 Stone Game VII [Go]({{< relref "/ChapterFour/1600~1699/1690.Stone-Game-VII.md" >}}) Medium 58.1%
1716 Calculate Money in Leetcode Bank [Go]({{< relref "/ChapterFour/1700~1799/1716.Calculate-Money-in-Leetcode-Bank.md" >}}) Easy 66.0%
1742 Maximum Number of Balls in a Box [Go]({{< relref "/ChapterFour/1700~1799/1742.Maximum-Number-of-Balls-in-a-Box.md" >}}) Easy 73.6%
2038 Remove Colored Pieces if Both Neighbors are the Same Color [Go]({{< relref "/ChapterFour/2000~2099/2038.Remove-Colored-Pieces-if-Both-Neighbors-are-the-Same-Color.md" >}}) Medium 57.9%
2165 Smallest Value of the Rearranged Number [Go]({{< relref "/ChapterFour/2100~2199/2165.Smallest-Value-of-the-Rearranged-Number.md" >}}) Medium 51.4%
2169 Count Operations to Obtain Zero [Go]({{< relref "/ChapterFour/2100~2199/2169.Count-Operations-to-Obtain-Zero.md" >}}) Easy 75.1%
2180 Count Integers With Even Digit Sum [Go]({{< relref "/ChapterFour/2100~2199/2180.Count-Integers-With-Even-Digit-Sum.md" >}}) Easy 65.4%
2183 Count Array Pairs Divisible by K [Go]({{< relref "/ChapterFour/2100~2199/2183.Count-Array-Pairs-Divisible-by-K.md" >}}) Hard 28.4%
------------ ------------------------------------------------------- ------- ---------------- --------------- ------------- ------------- -------------