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 March 23, 2021March 23, 2021
  • Array

LeetCode 1636. Sort Array by Increasing Frequency

Description https://leetcode.com/problems/sort-array-by-increasing-frequency/ Given an array of integers nums, sort the array in increasing order based on the frequency of the values. If multiple…

Continue Reading
  • Posted on March 23, 2021March 23, 2021
  • Array

LeetCode 566. Reshape the Matrix

Description https://leetcode.com/problems/reshape-the-matrix/ In MATLAB, there is a very useful function called ‘reshape’, which can reshape a matrix into a new…

Continue Reading
  • Posted on March 23, 2021March 23, 2021
  • Array

LeetCode 1200. Minimum Absolute Difference

Description https://leetcode.com/problems/minimum-absolute-difference/ Given an array of distinct integers arr, find all pairs of elements with the minimum absolute difference of any two elements.  Return a…

Continue Reading
  • Posted on March 22, 2021March 22, 2021
  • Array

LeetCode 1399. Count Largest Group

Description https://leetcode.com/problems/count-largest-group/ Given an integer n. Each number from 1 to n is grouped according to the sum of its digits.  Return how many groups have the…

Continue Reading
  • Posted on March 22, 2021March 22, 2021
  • Array

LeetCode 705. Design HashSet

Description https://leetcode.com/problems/design-hashset/ Design a HashSet without using any built-in hash table libraries. Implement MyHashSet class: void add(key) Inserts the value key into the HashSet. bool…

Continue Reading
  • Posted on March 21, 2021March 21, 2021
  • Array

LeetCode 442. Find All Duplicates in an Array

Description https://leetcode.com/problems/find-all-duplicates-in-an-array/ Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find…

Continue Reading
  • Posted on March 19, 2021March 19, 2021
  • Array

LeetCode 1394. Find Lucky Integer in an Array

Description https://leetcode.com/problems/find-lucky-integer-in-an-array/ Given an array of integers arr, a lucky integer is an integer which has a frequency in the array…

Continue Reading
  • Posted on March 18, 2021March 18, 2021
  • Array

LeetCode 1064. Fixed Point

Description https://leetcode.com/problems/fixed-point/ Given an array of distinct integers arr, where arr is sorted in ascending order, return the smallest index i that satisfies arr[i] == i. If…

Continue Reading
  • Posted on March 18, 2021March 18, 2021
  • Array

LeetCode 961. N-Repeated Element in Size 2N Array

Description https://leetcode.com/problems/n-repeated-element-in-size-2n-array/ In a array A of size 2N, there are N+1 unique elements, and exactly one of these elements is repeated N times. Return the element…

Continue Reading
  • Posted on March 18, 2021March 18, 2021
  • Array

LeetCode 1337. The K Weakest Rows in a Matrix

Description https://leetcode.com/problems/the-k-weakest-rows-in-a-matrix/ You are given an m x n binary matrix mat of 1‘s (representing soldiers) and 0‘s (representing civilians). The soldiers are positioned in front of the…

Continue Reading

Posts navigation

Previous Page Page 1 … Page 9 Page 10 Page 11 … 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