avatar_url

Sandesh Rana | Python

I'm a developer from Himalayas, with a passion for crafting efficient and elegant code, with creativity and precision.

Basic Math

21 Aug 2024 » programming, math

Basic Math: Easy to Hard Problems

Easy

  1. Fizz Buzz (Prints numbers with Fizz, Buzz, or FizzBuzz based on divisibility)
  2. Power of Two (Checks if a number is a power of two)
  3. Roman to Integer (Converts a Roman numeral to an integer)
  4. Sqrt(x) (Computes the integer square root of a number)
  5. Count Primes (Counts the number of prime numbers less than a given number)

Medium

  1. Add Digits (Reduces a number to a single digit by repeatedly summing its digits)
  2. Excel Sheet Column Number (Converts an Excel column title to a number)
  3. Multiply Strings (Multiplies two numbers represented as strings)
  4. Largest Rectangle in Histogram (Finds the largest rectangle area in a histogram)
  5. Calculate Money in Leetcode Bank (Calculates the total amount of money in a bank account after a series of deposits and withdrawals)

Hard

  1. Integer Replacement (Finds the minimum number of replacements to reduce a number to 1)
  2. Super Palindromes (Finds the count of super palindromes within a range)
  3. Minimum Number of Refueling Stops (Finds the minimum number of refueling stops required to reach a destination)
  4. Basic Calculator III (Evaluates a basic mathematical expression with operators and parentheses)
  5. Maximal Rectangle (Finds the largest rectangle of 1s in a binary matrix)