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

  • Posted on May 23, 2021May 23, 2021
  • Greedy

LeetCode 1762. Buildings With an Ocean View

Description https://leetcode.com/problems/buildings-with-an-ocean-view/ There are n buildings in a line. You are given an integer array heights of size n that represents the heights of the buildings…

Continue Reading
  • Posted on May 23, 2021May 23, 2021
  • Greedy

LeetCode 1403. Minimum Subsequence in Non-Increasing Order

Description https://leetcode.com/problems/minimum-subsequence-in-non-increasing-order/ Given the array nums, obtain a subsequence of the array whose sum of elements is strictly greater than the sum of…

Continue Reading
  • Posted on May 22, 2021
  • Greedy

LeetCode 1221. Split a String in Balanced Strings

Description https://leetcode.com/problems/split-a-string-in-balanced-strings/ Balanced strings are those that have an equal quantity of ‘L’ and ‘R’ characters. Given a balanced string s, split it in the maximum amount of…

Continue Reading
  • Posted on May 22, 2021May 22, 2021
  • Greedy

LeetCode 455. Assign Cookies

Description https://leetcode.com/problems/assign-cookies/ Assume you are an awesome parent and want to give your children some cookies. But, you should give…

Continue Reading
  • Posted on May 22, 2021May 22, 2021
  • Greedy

LeetCode 1710. Maximum Units on a Truck

Description https://leetcode.com/problems/maximum-units-on-a-truck/ You are assigned to put some amount of boxes onto one truck. You are given a 2D array boxTypes, where boxTypes[i]…

Continue Reading

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