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

  • Posted on October 2, 2020October 2, 2020
  • Array

LeetCode 624. Maximum Distance in Arrays

Description https://leetcode.com/problems/maximum-distance-in-arrays/ Given m arrays, and each array is sorted in ascending order. Now you can pick up two integers from two…

Continue Reading
  • Posted on October 1, 2020October 5, 2020
  • Array

LeetCode 31. Next Permutation

Description https://leetcode.com/problems/next-permutation/ Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. If such arrangement is not…

Continue Reading
  • Posted on September 30, 2020September 30, 2020
  • Array

LeetCode 857. Minimum Cost to Hire K Workers

Description https://leetcode.com/problems/minimum-cost-to-hire-k-workers/ There are N workers.  The i-th worker has a quality[i] and a minimum wage expectation wage[i]. Now we want to hire exactly K workers to form…

Continue Reading
  • Posted on September 29, 2020September 29, 2020
  • Array

LeetCode 165. Compare Version Numbers

Description https://leetcode.com/problems/compare-version-numbers/ Given two version numbers, version1 and version2, compare them. Version numbers consist of one or more revisions joined by a dot ‘.’. Each revision consists…

Continue Reading
  • Posted on August 20, 2020September 1, 2020
  • Array

LeetCode 973. K Closest Points to Origin

Description https://leetcode.com/problems/missing-ranges/ We have a list of points on the plane.  Find the K closest points to the origin (0, 0). (Here, the distance between…

Continue Reading
  • Posted on August 17, 2020August 20, 2020
  • Array

LeetCode 163. Missing Ranges

Description https://leetcode.com/problems/missing-ranges/ Given a sorted integer array nums, where the range of elements are in the inclusive range [lower, upper], return its missing ranges.…

Continue Reading
  • Posted on August 13, 2020August 13, 2020
  • Array

LeetCode 169. Majority Element

Description https://leetcode.com/problems/majority-element/ Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊…

Continue Reading
  • Posted on June 6, 2020June 6, 2020
  • Array

LeetCode 75. Sort Colors

Description https://leetcode.com/problems/sort-colors/ Given an array with n objects colored red, white or blue, sort them in-place so that objects of the same color are…

Continue Reading
  • Posted on May 20, 2020May 20, 2020
  • Array

LeetCode 46. Permutations

Description https://leetcode.com/problems/permutations/ Given a collection of distinct integers, return all possible permutations. Example: Input: [1,2,3] Output: [ [1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2],…

Continue Reading
  • Posted on May 17, 2020October 14, 2020
  • Array

LeetCode 347. Top K Frequent Elements

Description https://leetcode.com/problems/top-k-frequent-elements/ Given a non-empty array of integers, return the k most frequent elements. Example 1: Input: nums = [1,1,1,2,2,3], k =…

Continue Reading

Posts navigation

Previous Page Page 1 Page 2 Page 3 … Page 5 Next Page

Follow GoodTecher

Categories

  • HackerRank (1)
  • Interview (5)
  • LeetCode (187)
    • Array (41)
    • Backtracking (10)
    • Binary Search (11)
    • Binary Tree (20)
    • Bit Manipulation (4)
    • Depth First Search (6)
    • Design (4)
    • Dynamic Programming (13)
    • Graph (3)
    • Linked List (13)
    • Math (16)
    • Recursion (1)
    • Sorting (5)
    • Stack (8)
    • String (23)
    • Two Pointers (10)
    • Union Find (2)
  • Machine Learning (7)
  • Technical Solutions (2)
  • Useful (2)
© Copyright 2021 – GoodTecher
Cell Theme by DesignOrbital ⋅ Powered by WordPress