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: Binary Search

  • Posted on February 3, 2021February 3, 2021
  • Binary Search

LeetCode 441. Arranging Coins

Description https://leetcode.com/problems/arranging-coins/ You have a total of n coins that you want to form in a staircase shape, where every k-th row must…

Continue Reading
  • Posted on November 8, 2020January 18, 2021
  • Binary Search

LeetCode 410. Split Array Largest Sum

Description https://leetcode.com/problems/split-array-largest-sum/ Given an array nums which consists of non-negative integers and an integer m, you can split the array into m non-empty continuous subarrays.…

Continue Reading
  • Posted on October 24, 2020October 24, 2020
  • Binary Search

LeetCode 315. Count of Smaller Numbers After Self

Description https://leetcode.com/problems/count-of-smaller-numbers-after-self/ You are given an integer array nums and you have to return a new counts array. The counts array has the property where counts[i] is the…

Continue Reading
  • Posted on September 1, 2020February 3, 2021
  • Binary Search

LeetCode 852. Peak Index in a Mountain Array

Description https://leetcode.com/problems/peak-index-in-a-mountain-array/ Let’s call an array arr a mountain if the following properties hold: arr.length >= 3 There exists some i with 0 < i < arr.length -…

Continue Reading
  • Posted on July 21, 2020July 21, 2020
  • Binary Search

LeetCode 240. Search a 2D Matrix II

Description https://leetcode.com/problems/search-a-2d-matrix-ii/ Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers…

Continue Reading
  • Posted on May 15, 2020May 15, 2020
  • Binary Search

LeetCode 162. Find Peak Element

Description https://leetcode.com/problems/find-peak-element/ A peak element is an element that is greater than its neighbors. Given an input array nums, where nums[i] ≠…

Continue Reading
  • Posted on April 19, 2020July 20, 2020
  • Binary Search

LeetCode 33. Search in Rotated Sorted Array

Description https://leetcode.com/problems/search-in-rotated-sorted-array/ Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]).…

Continue Reading
  • Posted on August 4, 2018March 29, 2020
  • Binary Search

LeetCode 278. First Bad Version

Description You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version…

Continue Reading
  • 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 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

Posts navigation

Page 1 Page 2 Next Page

Follow GoodTecher

Categories

  • HackerRank (1)
  • Interview (5)
  • LeetCode (267)
    • Array (71)
    • Backtracking (10)
    • Binary Search (12)
    • Binary Tree (25)
    • Bit Manipulation (5)
    • Database (18)
    • Depth First Search (6)
    • Design (4)
    • Dynamic Programming (13)
    • Graph (3)
    • Linked List (15)
    • Math (22)
    • Recursion (1)
    • Sorting (7)
    • Stack (10)
    • String (34)
    • Two Pointers (12)
    • Union Find (2)
  • Machine Learning (7)
  • Technical Solutions (2)
  • Useful (3)
© Copyright 2021 – GoodTecher
Cell Theme by DesignOrbital ⋅ Powered by WordPress