Tag: math
- 2 Keys Keyboard
- 24 Game
- 4 Keys Keyboard
- A Number After a Double Reversal
- Abbreviating the Product of a Range
- Account Balance After Rounded Purchase
- Add Binary
- Add Digits
- Add Strings
- Add to Array-Form of Integer
- Add Two Integers
- Add Two Numbers II
- Add Two Numbers
- Add Two Polynomials Represented as Linked Lists
- Adding Two Negabinary Numbers
- Airplane Seat Assignment Probability
- Alice and Bob Playing Flower Game
- Allocate Mailboxes
- Alternating Digit Sum
- Angle Between Hands of a Clock
- Append K Integers With Minimal Sum
- Apply Operations to Make Sum of Array Greater Than or Equal to k
- Apply Operations to Maximize Score
- Armstrong Number
- Arranging Coins
- Average Value of Even Numbers That Are Divisible by Three
- Base 7
- Basic Calculator II
- Basic Calculator III
- Basic Calculator IV
- Basic Calculator
- Beautiful Arrangement II
- Beautiful Array
- Beautiful Pairs
- Best Meeting Point
- Best Position for a Service Centre
- Bitwise OR of All Subsequence Sums
- Broken Calculator
- Building Boxes
- Bulb Switcher II
- Bulb Switcher
- Calculate Delayed Arrival Time
- Calculate Money in Leetcode Bank
- Can I Win
- Car Fleet II
- Cat and Mouse II
- Cat and Mouse
- Categorize Box According to Criteria
- Cells with Odd Values in a Matrix
- Chalkboard XOR Game
- Check If Digits Are Equal in String After Operations I
- Check If Digits Are Equal in String After Operations II
- Check If It Is a Good Array
- Check If It Is a Straight Line
- Check if Number is a Sum of Powers of Three
- Check if Point Is Reachable
- Check if The Number is Fascinating
- Check if the Rectangle Corner Is Reachable
- Check if Two Chessboard Squares Have the Same Color
- Circle and Rectangle Overlapping
- Circular Permutation in Binary Representation
- Climbing Stairs
- Closest Divisors
- Closest Fair Integer
- Closest Prime Numbers in Range
- Clumsy Factorial
- Color the Triangle Red
- Complex Number Multiplication
- Concatenation of Consecutive Binary Numbers
- Confusing Number II
- Confusing Number
- Consecutive Numbers Sum
- Construct the Longest New String
- Construct the Rectangle
- Continuous Subarray Sum
- Convert a Number to Hexadecimal
- Convert Binary Number in a Linked List to Integer
- Convert Date to Binary
- Convert Integer to the Sum of Two No-Zero Integers
- Convert the Temperature
- Convert to Base -2
- Convex Polygon
- Count All Valid Pickup and Delivery Options
- Count Alternating Subarrays
- Count Anagrams
- Count Array Pairs Divisible by K
- Count Beautiful Substrings I
- Count Beautiful Substrings II
- Count Collisions of Monkeys on a Polygon
- Count Connected Components in LCM Graph
- Count Days Spent Together
- Count Distinct Numbers on Board
- Count Good Numbers
- Count Integers With Even Digit Sum
- Count K-Reducible Numbers Less Than N
- Count K-Subsequences of a String With Maximum Beauty
- Count Largest Group
- Count Lattice Points Inside a Circle
- Count Mentions Per User
- Count Nice Pairs in an Array
- Count Number of Bad Pairs
- Count Number of Balanced Permutations
- Count Number of Distinct Integers After Reverse Operations
- Count Number of Homogenous Substrings
- Count Number of Nice Subarrays
- Count Number of Texts
- Count Numbers With Unique Digits II
- Count Numbers with Unique Digits
- Count Odd Numbers in an Interval Range
- Count of Integers
- Count of Matches in Tournament
- Count Operations to Obtain Zero
- Count Partitions with Even Sum Difference
- Count Primes
- Count Sorted Vowel Strings
- Count Special Integers
- Count Special Subsequences
- Count Square Sum Triples
- Count Strictly Increasing Subarrays
- Count Substrings Starting and Ending with Given Character
- Count Substrings with Only One Distinct Letter
- Count Symmetric Integers
- Count the Digits That Divide a Number
- Count the Number of Arrays with K Matching Adjacent Elements
- Count the Number of Good Partitions
- Count the Number of Good Subsequences
- Count the Number of Ideal Arrays
- Count the Number of Infection Sequences
- Count the Number of K-Free Subsets
- Count the Number of Powerful Integers
- Count the Number of Square-Free Subsets
- Count Total Number of Colored Cells
- Count Triplets That Can Form Two Arrays of Equal XOR
- Count Valid Paths in a Tree
- Count Ways to Build Rooms in an Ant Colony
- Count Ways to Make Array With Product
- Create Components With Same Value
- Day of the Week
- Day of the Year
- Design an Expression Tree With Evaluate Function
- Determine Color of a Chessboard Square
- Determine if a Cell Is Reachable at a Given Time
- Determine the Minimum Sum of a k-avoiding Array
- Detonate the Maximum Bombs
- Difference Between Element Sum and Digit Sum of an Array
- Different Ways to Add Parentheses
- Digit Count in Range
- Digit Operations to Make Two Integers Equal
- Distinct Prime Factors of Product of Array
- Distribute Candies Among Children I
- Distribute Candies Among Children II
- Distribute Candies Among Children III
- Distribute Candies to People
- Distribute Money to Maximum Children
- Divide Two Integers
- Divisible and Non-divisible Sums Difference
- Divisor Game
- Double a Number Represented as a Linked List
- Double Modular Exponentiation
- Egg Drop With 2 Eggs and N Floors
- Elimination Game
- Encode Number
- Equal Rational Numbers
- Erect the Fence II
- Erect the Fence
- Escape The Ghosts
- Evaluate Reverse Polish Notation
- Excel Sheet Column Number
- Excel Sheet Column Title
- Expression Add Operators
- Factorial Trailing Zeroes
- Fancy Sequence
- Fibonacci Number
- Final Array State After K Multiplication Operations I
- Find Greatest Common Divisor of Array
- Find if Digit Game Can Be Won
- Find Minimum Operations to Make All Elements Divisible by Three
- Find Missing and Repeated Values
- Find Missing Observations
- Find N Unique Integers Sum up to Zero
- Find Number of Ways to Reach the K-th Stair
- Find Numbers with Even Number of Digits
- Find Palindrome With Fixed Length
- Find Positive Integer Solution for a Given Equation
- Find the Child Who Has the Ball After K Seconds
- Find the Closest Palindrome
- Find the Count of Good Integers
- Find the Count of Monotonic Pairs I
- Find the Count of Monotonic Pairs II
- Find the Count of Numbers Which Are Not Special
- Find the Derangement of An Array
- Find the Divisibility Array of a String
- Find the K-Beauty of a Number
- Find the K-th Character in String Game I
- Find the K-th Character in String Game II
- Find The K-th Lucky Number
- Find the Key of the Numbers
- Find the Largest Area of Square Inside Two Rectangles
- Find the Largest Palindrome Divisible by K
- Find the Maximum Achievable Number
- Find the Maximum Factor Score of Array
- Find the Minimum Number of Fibonacci Numbers Whose Sum Is K
- Find the Minimum Possible Sum of a Beautiful Array
- Find the N-th Value After K Seconds
- Find the Number of Copy Arrays
- Find the Number of Possible Ways for an Event
- Find the Number of Subsequences With Equal GCD
- Find the Number of Ways to Place People I
- Find the Number of Ways to Place People II
- Find the Pivot Integer
- Find the Punishment Number of an Integer
- Find the Sum of Encrypted Integers
- Find the Winner of the Circular Game
- Find the Winning Player in Coin Game
- Find Three Consecutive Integers That Sum to a Given Number
- Find Triangular Sum of an Array
- Find Xor-Beauty of Array
- Find XOR Sum of All Pairs Bitwise AND
- Fizz Buzz
- Flip Game II
- Four Divisors
- Fraction Addition and Subtraction
- Fraction to Recurring Decimal
- Game of Nim
- GCD Sort of an Array
- Generate Random Point in a Circle
- Get Biggest Three Rhombus Sums in a Grid
- Global and Local Inversions
- Graph Connectivity With Threshold
- Gray Code
- Greatest Common Divisor of Strings
- Greatest Common Divisor Traversal
- Guess Number Higher or Lower II
- Guess the Majority in a Hidden Array
- Guess the Word
- Handshakes That Don't Cross
- Happy Number
- Harshad Number
- Hexspeak
- Implement Rand10() Using Rand7()
- Incremental Memory Leak
- Insert Delete GetRandom O(1) - Duplicates allowed
- Insert Delete GetRandom O(1)
- Insert Greatest Common Divisors in Linked List
- Integer Break
- Integer to English Words
- Integer to Roman
- K Closest Points to Origin
- K Items With the Maximum Sum
- K-th Symbol in Grammar
- Kth Smallest Amount With Single Denomination Combination
- Kth Smallest Instructions
- Kth Smallest Number in Multiplication Table
- Largest Component Size by Common Factor
- Largest Divisible Subset
- Largest Multiple of Three
- Largest Odd Number in String
- Largest Palindrome Product
- Largest Perimeter Triangle
- Largest Triangle Area
- Least Operators to Express Number
- Line Reflection
- Linked List Random Node
- Magic Squares In Grid
- Make K-Subarray Sums Equal
- Manhattan Distances of All Arrangements of Pieces
- Matrix Cells in Distance Order
- Matrix Similarity After Cyclic Shifts
- Max Difference You Can Get From Changing an Integer
- Max Points on a Line
- Maximize Number of Nice Divisors
- Maximize Score After N Operations
- Maximum 69 Number
- Maximum and Minimum Sums of at Most Size K Subarrays
- Maximum and Minimum Sums of at Most Size K Subsequences
- Maximum Area Rectangle With Point Constraints I
- Maximum Area Rectangle With Point Constraints II
- Maximum Building Height
- Maximum Containers on a Ship
- Maximum Difference by Remapping a Digit
- Maximum Element-Sum of a Complete Subset of Indices
- Maximum Frequency Score of a Subarray
- Maximum GCD-Sum of a Subarray
- Maximum Manhattan Distance After K Changes
- Maximum Number of Balls in a Box
- Maximum Number of Coins You Can Get
- Maximum Number of Darts Inside of a Circular Dartboard
- Maximum Number of Groups Entering a Competition
- Maximum Number of Groups With Increasing Length
- Maximum Number of Intersections on the Chart
- Maximum Number of Moves to Kill All Pawns
- Maximum Number of Ones
- Maximum Number of Upgradable Servers
- Maximum Number of Visible Points
- Maximum Odd Binary Number
- Maximum of Absolute Value Expression
- Maximum Prime Difference
- Maximum Product of Three Numbers
- Maximum Score From Removing Stones
- Maximum Split of Positive Even Integers
- Maximum Subarray With Equal Products
- Maximum Swap
- Maximum XOR After Operations
- Maximum Xor Product
- Minimize Length of Array Using Operations
- Minimize Manhattan Distances
- Minimize Rounding Error to Meet Target
- Minimize the Maximum of Two Arrays
- Minimum Addition to Make Integer Beautiful
- Minimum Area Rectangle II
- Minimum Area Rectangle
- Minimum Cost to Change the Final Value of Expression
- Minimum Cost to Make Array Equalindromic
- Minimum Cost to Move Chips to The Same Position
- Minimum Cost to Set Cooking Time
- Minimum Cuts to Divide a Circle
- Minimum Deletions to Make Array Divisible
- Minimum Division Operations to Make Array Non Decreasing
- Minimum Element After Replacement With Digit Sum
- Minimum Factorization
- Minimum Garden Perimeter to Collect Enough Apples
- Minimum Increments for Target Multiples in an Array
- Minimum Lines to Represent a Line Chart
- Minimum Moves to Capture The Queen
- Minimum Moves to Equal Array Elements II
- Minimum Moves to Equal Array Elements
- Minimum Moves to Reach Target Score
- Minimum Non-Zero Product of the Array Elements
- Minimum Number of Lines to Cover Points
- Minimum Number of Operations to Make All Array Elements Equal to 1
- Minimum Number of Operations to Make String Sorted
- Minimum Number of Operations to Reinitialize a Permutation
- Minimum Number of Pushes to Type Word I
- Minimum Number of Seconds to Make Mountain Height Zero
- Minimum Operations to Make a Special Number
- Minimum Operations to Make a Uni-Value Grid
- Minimum Operations to Make Array Elements Zero
- Minimum Operations to Make Array Equal II
- Minimum Operations to Make Array Equal
- Minimum Operations to Make Elements Within K Subarrays Equal
- Minimum Operations to Make Subarray Elements Equal
- Minimum Replacements to Sort the Array
- Minimum Split Into Subarrays With GCD Greater Than One
- Minimum Subarrays in a Valid Split
- Minimum Sum of Four Digit Number After Splitting Digits
- Minimum Swaps to Make Strings Equal
- Minimum Time Difference
- Minimum Time For K Virus Variants to Spread
- Minimum Time to Build Blocks
- Minimum Time Visiting All Points
- Mirror Reflection
- Missing Number In Arithmetic Progression
- Missing Number
- Monotone Increasing Digits
- Most Expensive Item That Can Not Be Bought
- Most Frequent Prime
- Moving Stones Until Consecutive II
- Moving Stones Until Consecutive
- Multiply Strings
- N-th Tribonacci Number
- New 21 Game
- Next Greater Element III
- Next Greater Numerically Balanced Number
- Nim Game
- Nth Digit
- Nth Magical Number
- Number of Beautiful Integers in the Range
- Number of Beautiful Pairs
- Number of Boomerangs
- Number of Burgers with No Waste of Ingredients
- Number of Common Factors
- Number Of Corner Rectangles
- Number of Days Between Two Dates
- Number of Days in a Month
- Number of Different Subsequences GCDs
- Number of Digit One
- Number of Distinct Binary Strings After Applying Operations
- Number of Good Pairs
- Number of Laser Beams in a Bank
- Number of Music Playlists
- Number of Pairs of Interchangeable Rectangles
- Number of Sets of K Non-Overlapping Line Segments
- Number of Single Divisor Triplets
- Number of Smooth Descent Periods of a Stock
- Number of Squareful Arrays
- Number of Steps to Reduce a Number to Zero
- Number of Strings Which Can Be Rearranged to Contain Substring
- Number of Sub-arrays With Odd Sum
- Number of Subarrays Having Even Product
- Number of Subarrays With GCD Equal to K
- Number of Subarrays With LCM Equal to K
- Number of Subsequences with Odd Sum
- Number of Substrings With Fixed Ratio
- Number of Substrings With Only 1s
- Number of Ways to Build House of Cards
- Number of Ways to Buy Pens and Pencils
- Number of Ways to Divide a Long Corridor
- Number of Ways to Reach a Position After Exactly k Steps
- Number of Ways to Reach Destination in the Grid
- Number of Ways to Rearrange Sticks With K Sticks Visible
- Number of Ways to Reorder Array to Get Same BST
- Number of Ways to Split a String
- Number of Ways Where Square of Number Is Equal to Product of Two Numbers
- Number of Zero-Filled Subarrays
- Numbers At Most N Given Digit Set
- Numbers With Repeated Digits
- Optimal Division
- Orderly Queue
- Palindrome Number
- Pass the Pillow
- Path In Zigzag Labelled Binary Tree
- Perfect Number
- Perfect Squares
- Perform String Shifts
- Permutation Sequence
- Permutations IV
- Plus One Linked List
- Plus One
- Poor Pigs
- Power of Four
- Power of Heroes
- Power of Three
- Power of Two
- Powerful Integers
- Pow(x, n)
- Predict the Winner
- Preimage Size of Factorial Zeroes Function
- Prime Arrangements
- Prime In Diagonal
- Prime Number of Set Bits in Binary Representation
- Prime Pairs With Target Sum
- Prime Palindrome
- Prime Subtraction Operation
- Prison Cells After N Days
- Probability of a Two Boxes Having The Same Number of Distinct Balls
- Product of the Last K Numbers
- Projection Area of 3D Shapes
- Queries on Number of Points Inside a Circle
- Rabbits in Forest
- Random Flip Matrix
- Random Pick Index
- Random Pick with Blacklist
- Random Pick with Weight
- Random Point in Non-overlapping Rectangles
- Range Addition II
- Reach a Number
- Reaching Points
- Reconstruct Original Digits from English
- Rectangle Area
- Rectangle Overlap
- Remove 9
- Remove All Ones With Row and Column Flips
- Remove Colored Pieces if Both Neighbors are the Same Color
- Reordered Power of 2
- Replace Non-Coprime Numbers in Array
- Reverse Integer
- Reverse Subarray To Maximize Array Value
- Right Triangles
- Robot Bounded In Circle
- Roman to Integer
- Rotate Array
- Rotate Function
- Rotate Image
- Rotated Digits
- Self Crossing
- Self Dividing Numbers
- Sell Diminishing-Valued Colored Balls
- Shuffle an Array
- Sign of the Product of an Array
- Similar RGB Color
- Simplified Fractions
- Smallest Divisible Digit Product I
- Smallest Divisible Digit Product II
- Smallest Even Multiple
- Smallest Good Base
- Smallest Greater Multiple Made of Two Digits
- Smallest Integer Divisible by K
- Smallest Missing Non-negative Integer After Operations
- Smallest Number With All Set Bits
- Smallest Number With Given Digit Product
- Smallest Range I
- Smallest Range II
- Smallest Value After Replacing With Sum of Prime Factors
- Smallest Value of the Rearranged Number
- Solve the Equation
- Sort Transformed Array
- Sorted GCD Pair Queries
- Soup Servings
- Split Array With Same Average
- Split the Array to Make Coprime Products
- Split With Minimum Sum
- Sqrt(x)
- Squirrel Simulation
- Statistics from a Large Sample
- Stepping Numbers
- Stone Game II
- Stone Game III
- Stone Game IV
- Stone Game IX
- Stone Game V
- Stone Game VI
- Stone Game VII
- Stone Game VIII
- Stone Game
- Stone Removal Game
- Strictly Palindromic Number
- String Transformation
- Subsequences with a Unique Middle Mode I
- Subsequences with a Unique Middle Mode II
- Substrings That Begin and End With the Same Letter
- Subtract the Product and Sum of Digits of an Integer
- Subtree Removal Game with Fibonacci Tree
- Sum Game
- Sum Multiples
- Sum of Absolute Differences in a Sorted Array
- Sum of All Odd Length Subarrays
- Sum of All Subset XOR Totals
- Sum of Digit Differences of All Pairs
- Sum of Digits in Base K
- Sum of Digits in the Minimum Number
- Sum of Floored Pairs
- Sum of k-Mirror Numbers
- Sum of Number and Its Reverse
- Sum of Numbers With Units Digit K
- Sum of Square Numbers
- Sum of Subsequence Widths
- Sum of Two Integers
- Super Egg Drop
- Super Palindromes
- Super Pow
- Super Ugly Number
- Surface Area of 3D Shapes
- The kth Factor of n
- The Number of Beautiful Subsets
- The Number of Full Rounds You Have Played
- The Number of Good Subsets
- The Score of Students Solving Math Expression
- The Two Sneaky Numbers of Digitville
- The Wording Game
- Three Divisors
- Three Equal Parts
- Toss Strange Coins
- Total Characters in String After Transformations I
- Total Characters in String After Transformations II
- Total Distance Traveled
- Total Hamming Distance
- Transform to Chessboard
- Tree of Coprimes
- Type of Triangle
- Ugly Number II
- Ugly Number III
- Ugly Number
- Unique Binary Search Trees
- Unique Paths
- Valid Boomerang
- Valid Perfect Square
- Valid Square
- Verbal Arithmetic Puzzle
- Vowels Game in a String
- Vowels of All Substrings
- Water and Jug Problem
- Water Bottles II
- Water Bottles
- Ways to Split Array Into Good Subarrays
- X of a Kind in a Deck of Cards
- XOR Operation in an Array