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: LeetCode

  • Posted on November 5, 2017May 16, 2020
  • Binary Search

LeetCode 69. Sqrt(x)

Description Implement int sqrt(int x). Compute and return the square root of x, where x is guaranteed to be a non-negative integer. Since the…

Continue Reading
  • Posted on October 21, 2017February 6, 2021
  • LeetCode

LeetCode 412. Fizz Buzz

Description https://leetcode.com/problems/fizz-buzz/ Write a program that outputs the string representation of numbers from 1 to n. But for multiples of three…

Continue Reading
  • Posted on October 1, 2017May 15, 2020
  • Binary Search

LeetCode 34. Find First and Last Position of Element in Sorted Array

Description Given an array of integers nums sorted in ascending order, find the starting and ending position of a given target value. Your algorithm’s…

Continue Reading
  • Posted on September 24, 2017March 25, 2018
  • Binary Tree

LeetCode 144. Binary Tree Preorder Traversal

Description https://leetcode.com/problems/binary-tree-preorder-traversal/description/ Given a binary tree, return the preorder traversal of its nodes’ values. For example: Given binary tree {1,#,2,3}, 1 \ 2…

Continue Reading
  • Posted on September 17, 2017April 8, 2021
  • Binary Search

LeetCode 35. Search Insert Position

Description Given a sorted array of distinct integers and a target value, return the index if the target is found.…

Continue Reading
  • Posted on July 13, 2017March 19, 2020
  • Array

LeetCode 122. Best Time to Buy and Sell Stock II

Description https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/description/ Say you have an array for which the ith element is the price of a given stock on day i. Design…

Continue Reading
  • Posted on March 19, 2017July 5, 2021
  • Array

LeetCode 121. Best Time to Buy and Sell Stock

Description https://leetcode.com/problems/best-time-to-buy-and-sell-stock/ You are given an array prices where prices[i] is the price of a given stock on the ith day. You want to maximize your…

Continue Reading
  • Posted on March 1, 2017January 12, 2021
  • LeetCode

LeetCode 20. Valid Parentheses

Description https://leetcode.com/problems/valid-parentheses/ Given a string s containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[‘ and ‘]’, determine if the input string is valid. An input string is valid…

Continue Reading
  • Posted on February 17, 2017March 3, 2018
  • LeetCode

LeetCode 12. Integer to Roman

Description https://leetcode.com/problems/integer-to-roman/ Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from…

Continue Reading
  • Posted on February 16, 2017July 30, 2021
  • LeetCode

LeetCode 9. Palindrome Number

Description https://leetcode.com/problems/palindrome-number/ Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. Example 1:…

Continue Reading

Posts navigation

Previous Page Page 1 … Page 57 Page 58 Page 59 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