GoodTecher

Be a Good Techer and Tech for Good. www.goodtecher.com

Skip to content
Menu
  • Home
  • LeetCode
    • Array
    • Binary Search
    • Binary Tree
    • Depth First Search
    • Design
    • Dynamic Programming
    • Linked List
    • Math
    • Stack
    • String
    • Two Pointers
    • Union Find
  • Useful

Category: Math

  • Posted on August 6, 2020August 6, 2020
  • LeetCode

LeetCode 171. Excel Sheet Column Number

Description https://leetcode.com/problems/excel-sheet-column-number/ Given a column title as appear in an Excel sheet, return its corresponding column number. For example: A…

Continue Reading
  • Posted on August 5, 2020January 27, 2021
  • LeetCode

LeetCode 50. Pow(x, n)

Description https://leetcode.com/problems/longest-increasing-subsequence/ Implement pow(x, n), which calculates x raised to the power n (xn). Example 1: Input: 2.00000, 10 Output: 1024.00000 Example 2: Input: 2.10000, 3…

Continue Reading
  • Posted on August 4, 2020August 4, 2020
  • LeetCode

LeetCode 172. Factorial Trailing Zeroes

Description https://leetcode.com/problems/factorial-trailing-zeroes/ Given an integer n, return the number of trailing zeroes in n!. Example 1: Input: 3 Output: 0 Explanation: 3! =…

Continue Reading
  • Posted on April 12, 2020July 18, 2021
  • Array

LeetCode 1046. Last Stone Weight

Description https://leetcode.com/problems/last-stone-weight/ We have a collection of stones, each stone has a positive integer weight. Each turn, we choose the two heaviest stones and…

Continue Reading
  • Posted on April 12, 2020April 12, 2020
  • Binary Tree

LeetCode 543. Diameter of Binary Tree

Description https://leetcode.com/problems/diameter-of-binary-tree/ Given a binary tree, you need to compute the length of the diameter of the tree. The diameter…

Continue Reading
  • Posted on April 11, 2020April 11, 2020
  • Bit Manipulation

LeetCode 190. Reverse Bits

Description https://leetcode.com/problems/reverse-bits/ Reverse bits of a given 32 bits unsigned integer. Example 1: Input: 00000010100101000001111010011100 Output: 00111001011110000010100101000000 Explanation: The input…

Continue Reading
  • Posted on April 11, 2020April 11, 2020
  • Bit Manipulation

LeetCode 191. Number of 1 Bits

Description https://leetcode.com/problems/number-of-1-bits/ Write a function that takes an unsigned integer and return the number of ‘1’ bits it has (also known as…

Continue Reading
  • Posted on April 11, 2020April 11, 2020
  • Bit Manipulation

LeetCode 461. Hamming Distance

Description https://leetcode.com/problems/hamming-distance/ The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two…

Continue Reading
  • Posted on April 10, 2020April 10, 2020
  • LeetCode

LeetCode 326. Power of Three

Description https://leetcode.com/problems/power-of-three/ Given an integer, write a function to determine if it is a power of three. Example 1: Input:…

Continue Reading
  • Posted on April 10, 2020December 14, 2021
  • Dynamic Programming

LeetCode 204. Count Primes

Description https://leetcode.com/problems/count-primes/ Given an integer n, return the number of prime numbers that are strictly less than n. Example 1: Input: n =…

Continue Reading

Posts navigation

Previous Page Page 1 Page 2 Page 3 Page 4 Next Page

Follow GoodTecher

Categories

  • HackerRank (1)
  • Interview (7)
  • LeetCode (588)
    • Array (185)
    • Backtracking (18)
    • Binary Search (19)
    • Binary Tree (63)
    • Bit Manipulation (15)
    • Database (40)
    • Depth First Search (6)
    • Design (10)
    • Dynamic Programming (17)
    • Graph (18)
    • Greedy (5)
    • Heap (1)
    • Linked List (26)
    • Math (36)
    • Recursion (3)
    • Sorting (11)
    • Stack (11)
    • String (95)
    • Two Pointers (12)
    • Union Find (2)
  • Machine Learning (7)
  • Technical Solutions (2)
  • Useful (3)
© Copyright 2025 – GoodTecher
Cell Theme by DesignOrbital ⋅ Powered by WordPress