Basic Math: Easy to Hard Problems
Easy
- Fizz Buzz (Prints numbers with Fizz, Buzz, or FizzBuzz based on divisibility)
- Power of Two (Checks if a number is a power of two)
- Roman to Integer (Converts a Roman numeral to an integer)
- Sqrt(x) (Computes the integer square root of a number)
- Count Primes (Counts the number of prime numbers less than a given number)
Medium
- Add Digits (Reduces a number to a single digit by repeatedly summing its digits)
- Excel Sheet Column Number (Converts an Excel column title to a number)
- Multiply Strings (Multiplies two numbers represented as strings)
- Largest Rectangle in Histogram (Finds the largest rectangle area in a histogram)
- Calculate Money in Leetcode Bank (Calculates the total amount of money in a bank account after a series of deposits and withdrawals)
Hard
- Integer Replacement (Finds the minimum number of replacements to reduce a number to 1)
- Super Palindromes (Finds the count of super palindromes within a range)
- Minimum Number of Refueling Stops (Finds the minimum number of refueling stops required to reach a destination)
- Basic Calculator III (Evaluates a basic mathematical expression with operators and parentheses)
- Maximal Rectangle (Finds the largest rectangle of 1s in a binary matrix)