method
Math — animated LeetCode walkthroughs
LeetCode problems solved with Math. Browse the complete tag, then watch the algorithm move — step-by-step animation, Python and Go.
715 problems · 625 animated · 90 locked
Start with a walkthrough
Full Math index
- 2Add Two NumbersWatch
- 7Reverse IntegerWatch
- 9Palindrome NumberWatch
- 12Integer to RomanWatch
- 13Roman to IntegerWatch
- 29Divide Two IntegersWatch
- 43Multiply StringsWatch
- 48Rotate ImageWatch
- 50Pow(x, n)Watch
- 60Permutation SequenceWatch
- 62Unique PathsWatch
- 66Plus OneWatch
- 67Add BinaryWatch
- 69Sqrt(x)Watch
- 70Climbing StairsWatch
- 89Gray CodeWatch
- 96Unique Binary Search TreesWatch
- 149Max Points on a LineWatch
- 150Evaluate Reverse Polish NotationWatch
- 166Fraction to Recurring DecimalWatch
- 168Excel Sheet Column TitleWatch
- 171Excel Sheet Column NumberWatch
- 172Factorial Trailing ZeroesWatch
- 189Rotate ArrayWatch
- 202Happy NumberWatch
- 204Count PrimesWatch
- 223Rectangle AreaWatch
- 224Basic CalculatorWatch
- 227Basic Calculator IIWatch
- 231Power of TwoWatch
- 233Number of Digit OneWatch
- 241Different Ways to Add ParenthesesWatch
- 258Add DigitsWatch
- 263Ugly NumberWatch
- 264Ugly Number IIWatch
- 268Missing NumberWatch
- 273Integer to English WordsWatch
- 279Perfect SquaresWatch
- 282Expression Add OperatorsWatch
- 292Nim GameWatch
- 294Flip Game IILocked
- 296Best Meeting PointLocked
- 313Super Ugly NumberWatch
- 319Bulb SwitcherWatch
- 326Power of ThreeWatch
- 335Self CrossingWatch
- 342Power of FourWatch
- 343Integer BreakWatch
- 356Line ReflectionLocked
- 357Count Numbers with Unique DigitsWatch
- 360Sort Transformed ArrayLocked
- 365Water and Jug ProblemWatch
- 367Valid Perfect SquareWatch
- 368Largest Divisible SubsetWatch
- 369Plus One Linked ListLocked
- 371Sum of Two IntegersWatch
- 372Super PowWatch
- 375Guess Number Higher or Lower IIWatch
- 380Insert Delete GetRandom O(1)Watch
- 381Insert Delete GetRandom O(1) - Duplicates allowedWatch
- 382Linked List Random NodeWatch
- 384Shuffle an ArrayWatch
- 390Elimination GameWatch
- 391Perfect RectangleWatch
- 396Rotate FunctionWatch
- 398Random Pick IndexWatch
- 400Nth DigitWatch
- 405Convert a Number to HexadecimalWatch
- 412Fizz BuzzWatch
- 415Add StringsWatch
- 423Reconstruct Original Digits from EnglishWatch
- 441Arranging CoinsWatch
- 445Add Two Numbers IIWatch
- 447Number of BoomerangsWatch
- 453Minimum Moves to Equal Array ElementsWatch
- 458Poor PigsWatch
- 462Minimum Moves to Equal Array Elements IIWatch
- 464Can I WinWatch
- 469Convex PolygonLocked
- 470Implement Rand10() Using Rand7()Watch
- 477Total Hamming DistanceWatch
- 478Generate Random Point in a CircleWatch
- 479Largest Palindrome ProductWatch
- 483Smallest Good BaseWatch
- 486Predict the WinnerWatch
- 492Construct the RectangleWatch
- 497Random Point in Non-overlapping RectanglesWatch
- 504Base 7Watch
- 507Perfect NumberWatch
- 509Fibonacci NumberWatch
- 519Random Flip MatrixWatch
- 523Continuous Subarray SumWatch
- 528Random Pick with WeightWatch
- 537Complex Number MultiplicationWatch
- 539Minimum Time DifferenceWatch
- 553Optimal DivisionWatch
- 556Next Greater Element IIIWatch
- 564Find the Closest PalindromeWatch
- 573Squirrel SimulationLocked
- 587Erect the FenceWatch
- 592Fraction Addition and SubtractionWatch
- 593Valid SquareWatch
- 598Range Addition IIWatch
- 625Minimum FactorizationLocked
- 628Maximum Product of Three NumbersWatch
- 633Sum of Square NumbersWatch
- 634Find the Derangement of An ArrayLocked
- 640Solve the EquationWatch
- 6502 Keys KeyboardWatch
- 6514 Keys KeyboardLocked
- 660Remove 9Locked
- 667Beautiful Arrangement IIWatch
- 668Kth Smallest Number in Multiplication TableWatch
- 670Maximum SwapWatch
- 672Bulb Switcher IIWatch
- 67924 GameWatch
- 710Random Pick with BlacklistWatch
- 728Self Dividing NumbersWatch
- 738Monotone Increasing DigitsWatch
- 750Number Of Corner RectanglesLocked
- 754Reach a NumberWatch
- 762Prime Number of Set Bits in Binary RepresentationWatch
- 770Basic Calculator IVWatch
- 772Basic Calculator IIILocked
- 775Global and Local InversionsWatch
- 779K-th Symbol in GrammarWatch
- 780Reaching PointsWatch
- 781Rabbits in ForestWatch
- 782Transform to ChessboardWatch
- 788Rotated DigitsWatch
- 789Escape The GhostsWatch
- 793Preimage Size of Factorial Zeroes FunctionWatch
- 800Similar RGB ColorLocked
- 805Split Array With Same AverageWatch
- 808Soup ServingsWatch
- 810Chalkboard XOR GameWatch
- 812Largest Triangle AreaWatch
- 829Consecutive Numbers SumWatch
- 836Rectangle OverlapWatch
- 837New 21 GameWatch
- 840Magic Squares In GridWatch
- 843Guess the WordWatch
- 858Mirror ReflectionWatch
- 866Prime PalindromeWatch
- 869Reordered Power of 2Watch
- 877Stone GameWatch
- 878Nth Magical NumberWatch
- 883Projection Area of 3D ShapesWatch
- 887Super Egg DropWatch
- 891Sum of Subsequence WidthsWatch
- 892Surface Area of 3D ShapesWatch
- 899Orderly QueueWatch
- 902Numbers At Most N Given Digit SetWatch
- 906Super PalindromesWatch
- 908Smallest Range IWatch
- 910Smallest Range IIWatch
- 913Cat and MouseWatch
- 914X of a Kind in a Deck of CardsWatch
- 920Number of Music PlaylistsWatch
- 927Three Equal PartsWatch
- 932Beautiful ArrayWatch
- 939Minimum Area RectangleWatch
- 952Largest Component Size by Common FactorWatch
- 957Prison Cells After N DaysWatch
- 963Minimum Area Rectangle IIWatch
- 964Least Operators to Express NumberWatch
- 970Powerful IntegersWatch
- 972Equal Rational NumbersWatch
- 973K Closest Points to OriginWatch
- 976Largest Perimeter TriangleWatch
- 989Add to Array-Form of IntegerWatch
- 991Broken CalculatorWatch
- 996Number of Squareful ArraysWatch
- 1006Clumsy FactorialWatch
- 1012Numbers With Repeated DigitsWatch
- 1015Smallest Integer Divisible by KWatch
- 1017Convert to Base -2Watch
- 1025Divisor GameWatch
- 1030Matrix Cells in Distance OrderWatch
- 1033Moving Stones Until ConsecutiveWatch
- 1037Valid BoomerangWatch
- 1040Moving Stones Until Consecutive IIWatch
- 1041Robot Bounded In CircleWatch
- 1056Confusing NumberLocked
- 1058Minimize Rounding Error to Meet TargetLocked
- 1067Digit Count in RangeLocked
- 1071Greatest Common Divisor of StringsWatch
- 1073Adding Two Negabinary NumbersWatch
- 1085Sum of Digits in the Minimum NumberLocked
- 1088Confusing Number IILocked
- 1093Statistics from a Large SampleWatch
- 1103Distribute Candies to PeopleWatch
- 1104Path In Zigzag Labelled Binary TreeWatch
- 1118Number of Days in a MonthLocked
- 1131Maximum of Absolute Value ExpressionWatch
- 1134Armstrong NumberLocked
- 1137N-th Tribonacci NumberWatch
- 1140Stone Game IIWatch
- 1154Day of the YearWatch
- 1175Prime ArrangementsWatch
- 1180Count Substrings with Only One Distinct LetterLocked
- 1183Maximum Number of OnesLocked
- 1185Day of the WeekWatch
- 1199Minimum Time to Build BlocksLocked
- 1201Ugly Number IIIWatch
- 1215Stepping NumbersLocked
- 1217Minimum Cost to Move Chips to The Same PositionWatch
- 1227Airplane Seat Assignment ProbabilityWatch
- 1228Missing Number In Arithmetic ProgressionLocked
- 1230Toss Strange CoinsLocked
- 1232Check If It Is a Straight LineWatch
- 1237Find Positive Integer Solution for a Given EquationWatch
- 1238Circular Permutation in Binary RepresentationWatch
- 1247Minimum Swaps to Make Strings EqualWatch
- 1248Count Number of Nice SubarraysWatch
- 1250Check If It Is a Good ArrayWatch
- 1252Cells with Odd Values in a MatrixWatch
- 1256Encode NumberLocked
- 1259Handshakes That Don't CrossLocked
- 1266Minimum Time Visiting All PointsWatch
- 1271HexspeakLocked
- 1276Number of Burgers with No Waste of IngredientsWatch
- 1281Subtract the Product and Sum of Digits of an IntegerWatch
- 1290Convert Binary Number in a Linked List to IntegerWatch
- 1295Find Numbers with Even Number of DigitsWatch
- 1304Find N Unique Integers Sum up to ZeroWatch
- 1307Verbal Arithmetic PuzzleWatch
- 1317Convert Integer to the Sum of Two No-Zero IntegersWatch
- 1323Maximum 69 NumberWatch
- 1330Reverse Subarray To Maximize Array ValueWatch
- 1342Number of Steps to Reduce a Number to ZeroWatch
- 1344Angle Between Hands of a ClockWatch
- 1352Product of the Last K NumbersWatch
- 1359Count All Valid Pickup and Delivery OptionsWatch
- 1360Number of Days Between Two DatesWatch
- 1362Closest DivisorsWatch
- 1363Largest Multiple of ThreeWatch
- 1390Four DivisorsWatch
- 1399Count Largest GroupWatch
- 1401Circle and Rectangle OverlappingWatch
- 1406Stone Game IIIWatch
- 1414Find the Minimum Number of Fibonacci Numbers Whose Sum Is KWatch
- 1427Perform String ShiftsLocked
- 1432Max Difference You Can Get From Changing an IntegerWatch
- 1442Count Triplets That Can Form Two Arrays of Equal XORWatch
- 1447Simplified FractionsWatch
- 1453Maximum Number of Darts Inside of a Circular DartboardWatch
- 1467Probability of a Two Boxes Having The Same Number of Distinct BallsWatch
- 1478Allocate MailboxesWatch
- 1486XOR Operation in an ArrayWatch
- 1492The kth Factor of nWatch
- 1503Last Moment Before All Ants Fall Out of a PlankWatch
- 1510Stone Game IVWatch
- 1512Number of Good PairsWatch
- 1513Number of Substrings With Only 1sWatch
- 1515Best Position for a Service CentreWatch
- 1518Water BottlesWatch
- 1523Count Odd Numbers in an Interval RangeWatch
- 1524Number of Sub-arrays With Odd SumWatch
- 1538Guess the Majority in a Hidden ArrayLocked
- 1551Minimum Operations to Make Array EqualWatch
- 1561Maximum Number of Coins You Can GetWatch
- 1563Stone Game VWatch
- 1569Number of Ways to Reorder Array to Get Same BSTWatch
- 1573Number of Ways to Split a StringWatch
- 1577Number of Ways Where Square of Number Is Equal to Product of Two NumbersWatch
- 1588Sum of All Odd Length SubarraysWatch
- 1610Maximum Number of Visible PointsWatch
- 1611Minimum One Bit Operations to Make Integers ZeroWatch
- 1621Number of Sets of K Non-Overlapping Line SegmentsWatch
- 1622Fancy SequenceWatch
- 1627Graph Connectivity With ThresholdWatch
- 1628Design an Expression Tree With Evaluate FunctionLocked
- 1634Add Two Polynomials Represented as Linked ListsLocked
- 1641Count Sorted Vowel StringsWatch
- 1643Kth Smallest InstructionsWatch
- 1648Sell Diminishing-Valued Colored BallsWatch
- 1680Concatenation of Consecutive Binary NumbersWatch
- 1685Sum of Absolute Differences in a Sorted ArrayWatch
- 1686Stone Game VIWatch
- 1688Count of Matches in TournamentWatch
- 1690Stone Game VIIWatch
- 1716Calculate Money in Leetcode BankWatch
- 1728Cat and Mouse IIWatch
- 1735Count Ways to Make Array With ProductWatch
- 1739Building BoxesWatch
- 1742Maximum Number of Balls in a BoxWatch
- 1753Maximum Score From Removing StonesWatch
- 1759Count Number of Homogenous SubstringsWatch
- 1766Tree of CoprimesWatch
- 1776Car Fleet IIWatch
- 1780Check if Number is a Sum of Powers of ThreeWatch
- 1799Maximize Score After N OperationsWatch
- 1802Maximum Value at a Given Index in a Bounded ArrayWatch
- 1806Minimum Number of Operations to Reinitialize a PermutationWatch
- 1808Maximize Number of Nice DivisorsWatch
- 1812Determine Color of a Chessboard SquareWatch
- 1814Count Nice Pairs in an ArrayWatch
- 1819Number of Different Subsequences GCDsWatch
- 1822Sign of the Product of an ArrayWatch
- 1823Find the Winner of the Circular GameWatch
- 1828Queries on Number of Points Inside a CircleWatch
- 1830Minimum Number of Operations to Make String SortedWatch
- 1835Find XOR Sum of All Pairs Bitwise ANDWatch
- 1837Sum of Digits in Base KWatch
- 1840Maximum Building HeightWatch
- 1860Incremental Memory LeakWatch
- 1862Sum of Floored PairsWatch
- 1863Sum of All Subset XOR TotalsWatch
- 1866Number of Ways to Rearrange Sticks With K Sticks VisibleWatch
- 1872Stone Game VIIIWatch
- 1878Get Biggest Three Rhombus Sums in a GridWatch
- 1884Egg Drop With 2 Eggs and N FloorsWatch
- 1896Minimum Cost to Change the Final Value of ExpressionWatch
- 1903Largest Odd Number in StringWatch
- 1904The Number of Full Rounds You Have PlayedWatch
- 1908Game of NimLocked
- 1916Count Ways to Build Rooms in an Ant ColonyWatch
- 1922Count Good NumbersWatch
- 1924Erect the Fence IILocked
- 1925Count Square Sum TriplesWatch
- 1927Sum GameWatch
- 1952Three DivisorsWatch
- 1954Minimum Garden Perimeter to Collect Enough ApplesWatch
- 1956Minimum Time For K Virus Variants to SpreadLocked
- 1969Minimum Non-Zero Product of the Array ElementsWatch
- 1979Find Greatest Common Divisor of ArrayWatch
- 1994The Number of Good SubsetsWatch
- 1998GCD Sort of an ArrayWatch
- 1999Smallest Greater Multiple Made of Two DigitsLocked
- 2001Number of Pairs of Interchangeable RectanglesWatch
- 2005Subtree Removal Game with Fibonacci TreeLocked
- 2019The Score of Students Solving Math ExpressionWatch
- 2028Find Missing ObservationsWatch
- 2029Stone Game IXWatch
- 2033Minimum Operations to Make a Uni-Value GridWatch
- 2038Remove Colored Pieces if Both Neighbors are the Same ColorWatch
- 2048Next Greater Numerically Balanced NumberWatch
- 2063Vowels of All SubstringsWatch
- 2081Sum of k-Mirror NumbersWatch
- 2083Substrings That Begin and End With the Same LetterLocked
- 2101Detonate the Maximum BombsWatch
- 2110Number of Smooth Descent Periods of a StockWatch
- 2117Abbreviating the Product of a RangeWatch
- 2119A Number After a Double ReversalWatch
- 2125Number of Laser Beams in a BankWatch
- 2128Remove All Ones With Row and Column FlipsLocked
- 2139Minimum Moves to Reach Target ScoreWatch
- 2147Number of Ways to Divide a Long CorridorWatch
- 2152Minimum Number of Lines to Cover PointsLocked
- 2160Minimum Sum of Four Digit Number After Splitting DigitsWatch
- 2162Minimum Cost to Set Cooking TimeWatch
- 2165Smallest Value of the Rearranged NumberWatch
- 2169Count Operations to Obtain ZeroWatch
- 2177Find Three Consecutive Integers That Sum to a Given NumberWatch
- 2178Maximum Split of Positive Even IntegersWatch
- 2180Count Integers With Even Digit SumWatch
- 2183Count Array Pairs Divisible by KWatch
- 2189Number of Ways to Build House of CardsLocked
- 2195Append K Integers With Minimal SumWatch
- 2197Replace Non-Coprime Numbers in ArrayWatch
- 2217Find Palindrome With Fixed LengthWatch
- 2221Find Triangular Sum of an ArrayWatch
- 2235Add Two IntegersWatch
- 2240Number of Ways to Buy Pens and PencilsWatch
- 2249Count Lattice Points Inside a CircleWatch
- 2266Count Number of TextsWatch
- 2269Find the K-Beauty of a NumberWatch
- 2280Minimum Lines to Represent a Line ChartWatch
- 2310Sum of Numbers With Units Digit KWatch
- 2317Maximum XOR After Operations Watch
- 2338Count the Number of Ideal ArraysWatch
- 2344Minimum Deletions to Make Array DivisibleWatch
- 2348Number of Zero-Filled SubarraysWatch
- 2358Maximum Number of Groups Entering a CompetitionWatch
- 2364Count Number of Bad PairsWatch
- 2366Minimum Replacements to Sort the ArrayWatch
- 2376Count Special IntegersWatch
- 2393Count Strictly Increasing SubarraysLocked
- 2396Strictly Palindromic NumberWatch
- 2400Number of Ways to Reach a Position After Exactly k StepsWatch
- 2409Count Days Spent TogetherWatch
- 2413Smallest Even MultipleWatch
- 2417Closest Fair IntegerLocked
- 2419Longest Subarray With Maximum Bitwise ANDWatch
- 2425Bitwise XOR of All PairingsWatch
- 2427Number of Common FactorsWatch
- 2436Minimum Split Into Subarrays With GCD Greater Than OneLocked
- 2440Create Components With Same ValueWatch
- 2442Count Number of Distinct Integers After Reverse OperationsWatch
- 2443Sum of Number and Its ReverseWatch
- 2447Number of Subarrays With GCD Equal to KWatch
- 2450Number of Distinct Binary Strings After Applying OperationsLocked
- 2455Average Value of Even Numbers That Are Divisible by ThreeWatch
- 2457Minimum Addition to Make Integer BeautifulWatch
- 2464Minimum Subarrays in a Valid SplitLocked
- 2469Convert the TemperatureWatch
- 2470Number of Subarrays With LCM Equal to KWatch
- 2481Minimum Cuts to Divide a CircleWatch
- 2485Find the Pivot IntegerWatch
- 2489Number of Substrings With Fixed RatioLocked
- 2495Number of Subarrays Having Even ProductLocked
- 2505Bitwise OR of All Subsequence SumsLocked
- 2507Smallest Value After Replacing With Sum of Prime FactorsWatch
- 2513Minimize the Maximum of Two ArraysWatch
- 2514Count AnagramsWatch
- 2520Count the Digits That Divide a NumberWatch
- 2521Distinct Prime Factors of Product of ArrayWatch
- 2523Closest Prime Numbers in RangeWatch
- 2524Maximum Frequency Score of a SubarrayLocked
- 2525Categorize Box According to CriteriaWatch
- 2527Find Xor-Beauty of ArrayWatch
- 2535Difference Between Element Sum and Digit Sum of an ArrayWatch
- 2539Count the Number of Good SubsequencesLocked
- 2541Minimum Operations to Make Array Equal IIWatch
- 2543Check if Point Is ReachableWatch
- 2544Alternating Digit SumWatch
- 2549Count Distinct Numbers on BoardWatch
- 2550Count Collisions of Monkeys on a PolygonWatch
- 2566Maximum Difference by Remapping a DigitWatch
- 2568Minimum Impossible ORWatch
- 2572Count the Number of Square-Free SubsetsWatch
- 2575Find the Divisibility Array of a StringWatch
- 2578Split With Minimum SumWatch
- 2579Count Total Number of Colored CellsWatch
- 2582Pass the PillowWatch
- 2584Split the Array to Make Coprime ProductsWatch
- 2591Distribute Money to Maximum ChildrenWatch
- 2597The Number of Beautiful SubsetsWatch
- 2598Smallest Missing Non-negative Integer After OperationsWatch
- 2600K Items With the Maximum SumWatch
- 2601Prime Subtraction OperationWatch
- 2607Make K-Subarray Sums EqualWatch
- 2613Beautiful PairsLocked
- 2614Prime In DiagonalWatch
- 2638Count the Number of K-Free SubsetsLocked
- 2647Color the Triangle RedLocked
- 2651Calculate Delayed Arrival TimeWatch
- 2652Sum MultiplesWatch
- 2654Minimum Number of Operations to Make All Array Elements Equal to 1Watch
- 2681Power of HeroesWatch
- 2698Find the Punishment Number of an IntegerWatch
- 2709Greatest Common Divisor TraversalWatch
- 2719Count of IntegersWatch
- 2729Check if The Number is FascinatingWatch
- 2731Movement of RobotsWatch
- 2739Total Distance TraveledWatch
- 2745Construct the Longest New StringWatch
- 2748Number of Beautiful PairsWatch
- 2749Minimum Operations to Make the Integer ZeroWatch
- 2750Ways to Split Array Into Good SubarraysWatch
- 2761Prime Pairs With Target SumWatch
- 2769Find the Maximum Achievable NumberWatch
- 2790Maximum Number of Groups With Increasing LengthWatch
- 2802Find The K-th Lucky NumberLocked
- 2806Account Balance After Rounded PurchaseWatch
- 2807Insert Greatest Common Divisors in Linked ListWatch
- 2816Double a Number Represented as a Linked ListWatch
- 2818Apply Operations to Maximize ScoreWatch
- 2827Number of Beautiful Integers in the RangeWatch
- 2829Determine the Minimum Sum of a k-avoiding ArrayWatch
- 2834Find the Minimum Possible Sum of a Beautiful ArrayWatch
- 2842Count K-Subsequences of a String With Maximum BeautyWatch
- 2843 Count Symmetric IntegersWatch
- 2844Minimum Operations to Make a Special NumberWatch
- 2847Smallest Number With Given Digit ProductLocked
- 2849Determine if a Cell Is Reachable at a Given TimeWatch
- 2851String TransformationWatch
- 2862Maximum Element-Sum of a Complete Subset of IndicesWatch
- 2864Maximum Odd Binary NumberWatch
- 2867Count Valid Paths in a TreeWatch
- 2868The Wording GameLocked
- 2894Divisible and Non-divisible Sums DifferenceWatch
- 2912Number of Ways to Reach Destination in the GridLocked
- 2927Distribute Candies Among Children IIILocked
- 2928Distribute Candies Among Children IWatch
- 2929Distribute Candies Among Children IIWatch
- 2930Number of Strings Which Can Be Rearranged to Contain SubstringWatch
- 2939Maximum Xor ProductWatch
- 2941Maximum GCD-Sum of a SubarrayLocked
- 2946Matrix Similarity After Cyclic ShiftsWatch
- 2947Count Beautiful Substrings IWatch
- 2949Count Beautiful Substrings IIWatch
- 2954Count the Number of Infection SequencesWatch
- 2961Double Modular ExponentiationWatch
- 2963Count the Number of Good PartitionsWatch
- 2965Find Missing and Repeated ValuesWatch
- 2967Minimum Cost to Make Array EqualindromicWatch
- 2979Most Expensive Item That Can Not Be BoughtLocked
- 2992Number of Self-Divisible PermutationsLocked
- 2999Count the Number of Powerful IntegersWatch
- 3001Minimum Moves to Capture The QueenWatch
- 3007Maximum Number That Sum of the Prices Is Less Than or Equal to KWatch
- 3009Maximum Number of Intersections on the ChartLocked
- 3012Minimize Length of Array Using OperationsWatch
- 3014Minimum Number of Pushes to Type Word IWatch
- 3021Alice and Bob Playing Flower GameWatch
- 3024Type of TriangleWatch
- 3025Find the Number of Ways to Place People IWatch
- 3027Find the Number of Ways to Place People IIWatch
- 3032Count Numbers With Unique Digits IILocked
- 3044Most Frequent PrimeWatch
- 3047Find the Largest Area of Square Inside Two RectanglesWatch
- 3079Find the Sum of Encrypted IntegersWatch
- 3084Count Substrings Starting and Ending with Given CharacterWatch
- 3091Apply Operations to Make Sum of Array Greater Than or Equal to kWatch
- 3099Harshad NumberWatch
- 3100Water Bottles IIWatch
- 3101Count Alternating SubarraysWatch
- 3102Minimize Manhattan DistancesWatch
- 3115Maximum Prime DifferenceWatch
- 3116Kth Smallest Amount With Single Denomination CombinationWatch
- 3128Right TrianglesWatch
- 3153Sum of Digit Differences of All PairsWatch
- 3154Find Number of Ways to Reach the K-th StairWatch
- 3155Maximum Number of Upgradable ServersLocked
- 3178Find the Child Who Has the Ball After K SecondsWatch
- 3179Find the N-th Value After K SecondsWatch
- 3190Find Minimum Operations to Make All Elements Divisible by ThreeWatch
- 3222Find the Winning Player in Coin GameWatch
- 3227Vowels Game in a StringWatch
- 3232Find if Digit Game Can Be WonWatch
- 3233Find the Count of Numbers Which Are Not SpecialWatch
- 3235Check if the Rectangle Corner Is ReachableWatch
- 3247Number of Subsequences with Odd SumLocked
- 3250Find the Count of Monotonic Pairs IWatch
- 3251Find the Count of Monotonic Pairs IIWatch
- 3260Find the Largest Palindrome Divisible by KWatch
- 3264Final Array State After K Multiplication Operations IWatch
- 3270Find the Key of the NumbersWatch
- 3272Find the Count of Good IntegersWatch
- 3274Check if Two Chessboard Squares Have the Same ColorWatch
- 3280Convert Date to BinaryWatch
- 3283Maximum Number of Moves to Kill All PawnsWatch
- 3289The Two Sneaky Numbers of DigitvilleWatch
- 3296Minimum Number of Seconds to Make Mountain Height ZeroWatch
- 3300Minimum Element After Replacement With Digit SumWatch
- 3304Find the K-th Character in String Game IWatch
- 3307Find the K-th Character in String Game IIWatch
- 3312Sorted GCD Pair QueriesWatch
- 3317Find the Number of Possible Ways for an EventWatch
- 3326Minimum Division Operations to Make Array Non DecreasingWatch
- 3334Find the Maximum Factor Score of ArrayWatch
- 3335Total Characters in String After Transformations IWatch
- 3336Find the Number of Subsequences With Equal GCDWatch
- 3337Total Characters in String After Transformations IIWatch
- 3343Count Number of Balanced PermutationsWatch
- 3345Smallest Divisible Digit Product IWatch
- 3348Smallest Divisible Digit Product IIWatch
- 3352Count K-Reducible Numbers Less Than NWatch
- 3360Stone Removal GameWatch
- 3370Smallest Number With All Set BitsWatch
- 3377Digit Operations to Make Two Integers EqualWatch
- 3378Count Connected Components in LCM GraphWatch
- 3380Maximum Area Rectangle With Point Constraints IWatch
- 3382Maximum Area Rectangle With Point Constraints IIWatch
- 3395Subsequences with a Unique Middle Mode IWatch
- 3404Count Special SubsequencesWatch
- 3405Count the Number of Arrays with K Matching Adjacent ElementsWatch
- 3411Maximum Subarray With Equal ProductsWatch
- 3416Subsequences with a Unique Middle Mode IILocked
- 3422Minimum Operations to Make Subarray Elements EqualLocked
- 3426Manhattan Distances of All Arrangements of PiecesWatch
- 3428Maximum and Minimum Sums of at Most Size K SubsequencesWatch
- 3430Maximum and Minimum Sums of at Most Size K SubarraysWatch
- 3432Count Partitions with Even Sum DifferenceWatch
- 3433Count Mentions Per UserWatch
- 3443Maximum Manhattan Distance After K ChangesWatch
- 3444Minimum Increments for Target Multiples in an ArrayWatch
- 3461Check If Digits Are Equal in String After Operations IWatch
- 3463Check If Digits Are Equal in String After Operations IIWatch
- 3464Maximize the Distance Between Points on a SquareWatch
- 3468Find the Number of Copy ArraysWatch
- 3470Permutations IVWatch
- 3492Maximum Containers on a ShipWatch
- 3495Minimum Operations to Make Array Elements ZeroWatch
- 3505Minimum Operations to Make Elements Within K Subarrays EqualWatch
- 3506Find Time Required to Eliminate Bacterial StrainsLocked
- 3512Minimum Operations to Make Array Sum Divisible by KWatch
- 3513Number of Unique XOR Triplets IWatch
- 3514Number of Unique XOR Triplets IIWatch
- 3516Find Closest PersonWatch
- 3518Smallest Palindromic Rearrangement IIWatch
- 3519Count Numbers with Non-Decreasing Digits Watch
- 3524Find X Value of Array IWatch
- 3525Find X Value of Array IIWatch
- 3535Unit Conversion IILocked
- 3536Maximum Product of Two DigitsWatch
- 3539Find Sum of Array Product of Magical SequencesWatch
- 3547Maximum Sum of Edge Values in a GraphWatch
- 3549Multiply Two PolynomialsLocked
- 3550Smallest Index With Digit Sum Equal to IndexWatch
- 3556Sum of Largest Prime SubstringsWatch
- 3558Number of Ways to Assign Edge Weights IWatch
- 3559Number of Ways to Assign Edge Weights IIWatch
- 3560Find Minimum Log Transportation CostWatch
- 3569Maximize Count of Distinct Primes After SplitWatch
- 3574Maximize Subarray GCD ScoreWatch
- 3577Count the Number of Computer Unlocking PermutationsWatch
- 3588Find Maximum Area of a TriangleWatch
- 3589Count Prime-Gap Balanced SubarraysWatch
- 3591Check if Any Element Has Prime FrequencyWatch
- 3596Minimum Cost Path with Alternating Directions ILocked
- 3602Hexadecimal and Hexatrigesimal ConversionWatch
- 3605Minimum Stability Factor of ArrayWatch
- 3609Minimum Moves to Reach Target in GridWatch
- 3610Minimum Number of Primes to Sum to TargetLocked
- 3618Split Array by Prime IndicesWatch
- 3621Number of Integers With Popcount-Depth Equal to K IWatch
- 3622Check Divisibility by Digit Sum and ProductWatch
- 3623Count Number of Trapezoids IWatch
- 3625Count Number of Trapezoids IIWatch
- 3627Maximum Median Sum of Subsequences of Size 3Watch
- 3629Minimum Jumps to Reach End via Prime TeleportationWatch
- 3630Partition Array for Maximum XOR and ANDWatch
- 3648Minimum Sensors to Cover GridWatch
- 3649Number of Perfect PairsWatch
- 3658GCD of Odd and Even SumsWatch
- 3663Find The Least Frequent DigitWatch
- 3666Minimum Operations to Equalize Binary StringWatch
- 3667Sort Array By Absolute ValueLocked
- 3669Balanced K-Factor DecompositionWatch
- 3671Sum of Beautiful SubsequencesWatch
- 3674Minimum Operations to Equalize ArrayWatch
- 3677Count Binary Palindromic NumbersWatch
- 3680Generate ScheduleWatch
- 3681Maximum XOR of SubsequencesWatch
- 3697Compute Decimal RepresentationWatch
- 3700Number of ZigZag Arrays IIWatch
- 3704Count No-Zero Pairs That Sum to NWatch
- 3715Sum of Perfect Square AncestorsWatch
- 3723Maximize Sum of Squares of DigitsWatch
- 3725Count Ways to Choose Coprime Integers from RowsWatch
- 3726Remove Zeros in Decimal RepresentationWatch
- 3732Maximum Product of Three Elements After One ReplacementWatch
- 3733Minimum Time to Complete All DeliveriesWatch
- 3736Minimum Moves to Equal Array Elements IIIWatch
- 3747Count Distinct Integers After Removing ZerosWatch
- 3749Evaluate Valid ExpressionsLocked
- 3750Minimum Number of Flips to Reverse Binary StringWatch
- 3751Total Waviness of Numbers in Range IWatch
- 3752Lexicographically Smallest Negated Permutation that Sums to TargetWatch
- 3753Total Waviness of Numbers in Range IIWatch
- 3754Concatenate Non-Zero Digits and Multiply by Sum IWatch
- 3756Concatenate Non-Zero Digits and Multiply by Sum IIWatch
- 3757Number of Effective SubsequencesWatch
- 3761Minimum Absolute Distance Between Mirror PairsWatch
- 3762Minimum Operations to Equalize SubarraysWatch
- 3765Complete Prime NumberWatch
- 3770Largest Prime from Consecutive Prime SumWatch
- 3782Last Remaining Integer After Alternating Deletion OperationsWatch
- 3783Mirror Distance of an IntegerWatch
- 3789Minimum Cost to Acquire Required ItemsWatch
- 3790Smallest All-Ones MultipleWatch
- 3792Sum of Increasing Product BlocksLocked
- 3805Count Caesar Cipher PairsWatch
- 3817Good Indices in a Digit StringLocked
- 3821Find Nth Smallest Integer With K One BitsWatch
- 3828Final Element After Subarray DeletionsWatch
- 3848Check Digitorial PermutationWatch
- 3850Count Sequences to KWatch
- 3855Sum of K-Digit Numbers in a RangeWatch
- 3857Minimum Cost to Split into OnesWatch
- 3867Sum of GCD of Formed PairsWatch
- 3869Count Fancy Numbers in a RangeWatch
- 3870Count Commas in RangeWatch
- 3871Count Commas in Range IIWatch
- 3874Valid Subarrays With Exactly One PeakLocked
- 3875Construct Uniform Parity Array IWatch
- 3876Construct Uniform Parity Array IIWatch
- 3881Direction Assignments with Exactly K Visible PeopleWatch
- 3886Sum of Sortable IntegersWatch
- 3888Minimum Operations to Make All Grid Elements EqualLocked
- 3894Traffic Signal ColorWatch
- 3895Count Digit AppearancesWatch
- 3896Minimum Operations to Transform Array into Alternating PrimeWatch
- 3899Angles of a TriangleWatch
- 3901Good Subsequence QueriesWatch
- 3908Valid Digit NumberWatch
- 3916Number of ZigZag Arrays IIILocked
- 3918Sum of Primes Between Number and Its ReverseWatch
- 3927Minimize Array Sum Using Divisible ReplacementsWatch
- 3930Power Update After K-th Largest Insertion IILocked
- 3932Count K-th Roots in a RangeWatch
- 3935Power Update After K-th Largest Insertion ILocked
- 3945Digit Frequency ScoreWatch
- 3953Maximum Score with Co-Prime ElementWatch
- 3958Minimum Cost to Split into Ones IILocked
- 3959Check Good IntegerWatch
- 3966Count Good Integers in a RangeWatch
- 3968Maximum Manhattan Distance After All MovesWatch
- 3971Maximum Total ValueWatch
- 3973Distinct Gate Paths to LCALocked
- 3982Sum of Integers with Maximum Digit RangeWatch
- 3984Divisible GameWatch
- 3986Number of Elapsed Seconds Between Two TimesWatch
- 3987Minimum Total Cost to Process All ElementsWatch
- 3988Create Grid With Exactly K Paths IWatch
- 3990Create Grid With Exactly K Paths IILocked
- 3993Maximum Value of an Alternating SequenceWatch
- 3996Even Number of Knight MovesWatch
- 4000Largest Integer With Given Digit SumWatch
- 4002Count Valid SequencesWatch
- 4004Minimum Moves to Balance Circular Array IILocked
- 4005Minimum Operations to Make Array Equal IIILocked
- 4010Maximize Pair Strength Using GCDWatch
- 4021Minimum Operations to Make a Rotated Palindrome IWatch
- 4022K-th Digit in Infinite StringWatch
- 4028Minimum Operations to Make a Rotated Palindrome IILocked
- 4032Longest Subarray With at Most K Distinct Prime FactorsWatch
- 4034Minimum Bishop Moves to Reach TargetWatch
- 4035Maximum Valid Split Positions IWatch
- 4037Maximum Valid Split Positions IIWatch
- 4039Sum of Decoded NumbersWatch
- 4050Minimum Days to Score Exactly N PointsWatch