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

See more blog posts.