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 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, 2020September 9, 2021
  • Array

LeetCode 163. Missing Ranges

Description https://leetcode.com/problems/missing-ranges/ You are given an inclusive range [lower, upper] and a sorted unique integer array nums, where all elements are in the inclusive range.…

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 May 20, 2020July 6, 2021
  • Array

LeetCode 46. Permutations

Description https://leetcode.com/problems/permutations/ Given an array nums of distinct integers, return all the possible permutations. You can return the answer in any order. Example 1:…

Continue Reading
  • Posted on May 17, 2020February 5, 2021
  • 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
  • Posted on May 16, 2020May 16, 2020
  • Array

LeetCode 215. Kth Largest Element in an Array

Description https://leetcode.com/problems/kth-largest-element-in-an-array/ Find the kth largest element in an unsorted array. Note that it is the kth largest element in the…

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

LeetCode 334. Increasing Triplet Subsequence

Description https://leetcode.com/problems/increasing-triplet-subsequence/ Given an unsorted array return whether an increasing subsequence of length 3 exists or not in the array.…

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

LeetCode 73. Set Matrix Zeroes

Description https://leetcode.com/problems/set-matrix-zeroes/ Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in-place. Example…

Continue Reading
  • Posted on April 25, 2020August 24, 2021
  • Array

LeetCode 560. Subarray Sum Equals K

Description https://leetcode.com/problems/subarray-sum-equals-k/ Given an array of integers nums and an integer k, return the total number of continuous subarrays whose sum equals to k. Example…

Continue Reading
  • Posted on April 17, 2020July 5, 2021
  • Array

LeetCode 238. Product of Array Except Self

Description https://leetcode.com/problems/product-of-array-except-self/ Given an integer array nums, return an array answer such that answer[i] is equal to the product of all the elements of nums except nums[i]. The product…

Continue Reading

Posts navigation

Previous Page Page 1 … Page 16 Page 17 Page 18 Page 19 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