Review Math code problems

Num | Problem | Summary |
---|---|---|

1 | Check prime – Sieve of Eratosthenes | LeetCode: Count Primes |

2 | Check leap year | LeetCode: Day of the Week |

3 | GCD | LeetCode: Fraction Addition and Subtraction |

4 | Overlapping area of two rectangles | LeetCode: Rectangle Area |

5 | Rotate Array by k steps | LeetCode: Rotate Array |

6 | Mapping data range of getRand algorithm | LeetCode: Implement Rand10() Using Rand7() |

7 | Deal with float | LeetCode: Minimize Max Distance to Gas Station |

8 | Sum of Subsequence Widths | LeetCode: Sum of Subsequence Widths |

9 | Reduce f(x, y) to g(x) | Leetcode: Maximum of Absolute Value Expression |

10 | Remove 9 | LeetCode: Remove 9 |

11 | Fraction to Recurring Decimal | LeetCode: Fraction to Recurring Decimal |

12 | Check if two line segments intersect | |

13 | Integer Replacement | LeetCode: Integer Replacement |

14 | Sparse Matrix Multiplication | LeetCode: Sparse Matrix Multiplication |

15 | How to determine a square | LeetCode: Valid Square |

See all math problems: #math

- Review: Math Problems
- LeetCode: Water and Jug Problem
- LeetCode: Valid Square
- LeetCode: Valid Perfect Square
- LeetCode: Valid Boomerang
- LeetCode: Ugly Number III
- LeetCode: Transform to Chessboard
- LeetCode: Swap Adjacent in LR String
- LeetCode: Super Pow
- LeetCode: Sum of Two Integers
- LeetCode: Sum of Subsequence Widths
- LeetCode: Sum of Square Numbers
- LeetCode: Strobogrammatic Number II
- LeetCode: Strobogrammatic Number
- LeetCode: Squirrel Simulation
- LeetCode: Split Array With Same Average
- LeetCode: Sparse Matrix Multiplication
- LeetCode: Sort Transformed Array
- LeetCode: Solve the Equation
- LeetCode: Smallest Integer Divisible by K
- LeetCode: Rotate Array
- LeetCode: Roman to Integer
- LeetCode: Robot Bounded In Circle
- LeetCode: Reverse Subarray To Maximize Array Value
- LeetCode: Remove 9
- LeetCode: Reconstruct Original Digits from English
- LeetCode: Reach a Number
- LeetCode: Range Addition II
- LeetCode: Projection Area of 3D Shapes
- LeetCode: Prime Palindrome
- LeetCode: Prime Arrangements
- LeetCode: Power of Two
- LeetCode: Power of Three
- LeetCode: Power of Four
- LeetCode: Poor Pigs
- LeetCode: Optimal Division
- LeetCode: Number of Digit One
- LeetCode: Number of Days in a Month
- LeetCode: Number of Burgers with No Waste of Ingredients
- LeetCode: Number of Boomerangs
- LeetCode: Nth Digit
- LeetCode: Mirror Reflection
- LeetCode: Minimum Moves to Equal Array Elements
- LeetCode: Minimum Factorization
- LeetCode: Minimize Max Distance to Gas Station
- LeetCode: Maximum Number of Darts Inside of a Circular Dartboard
- LeetCode: Maximize Sum Of Array After K Negations
- LeetCode: Max Points on a Line
- LeetCode: Longest Uncommon Subsequence I
- LeetCode: Largest Triangle Area
- LeetCode: Largest Divisible Subset
- LeetCode: Integer to Roman
- LeetCode: Integer Replacement
- LeetCode: Integer Break
- LeetCode: Happy Number
- LeetCode: Fraction to Recurring Decimal
- LeetCode: Fraction Addition and Subtraction
- LeetCode: Find the Kth Smallest Sum of a Matrix With Sorted Rows
- LeetCode: Find the Derangement of An Array
- LeetCode: Factorial Trailing Zeroes
- LeetCode: Evaluate Reverse Polish Notation
- LeetCode: Elimination Game
- LeetCode: Divide Two Integers
- LeetCode: Day of the Year
- LeetCode: Count Primes
- LeetCode: Count Numbers with Unique Digits
- LeetCode: Convex Polygon
- LeetCode: Consecutive Numbers Sum
- LeetCode: Complex Number Multiplication
- LeetCode: Clumsy Factorial
- LeetCode: Champagne Tower
- LeetCode: Chalkboard XOR Game
- LeetCode: Bulb Switcher II
- LeetCode: Bulb Switcher
- LeetCode: Bitwise AND of Numbers Range
- LeetCode: Beautiful Arrangement II
- LeetCode: Angle Between Hands of a Clock
- LeetCode: Airplane Seat Assignment Probability

See more blog posts.