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

LeetCode 1150. Check If a Number Is Majority Element in a Sorted Array

Description https://leetcode.com/problems/check-if-a-number-is-majority-element-in-a-sorted-array/ Given an array nums sorted in non-decreasing order, and a number target, return True if and only if target is a majority element. A majority element is an element…

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

LeetCode 448. Find All Numbers Disappeared in an Array

Description https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/ Given an array nums of n integers where nums[i] is in the range [1, n], return an array of all the integers in the range [1, n] that…

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

LeetCode 1331. Rank Transform of an Array

Description https://leetcode.com/problems/rank-transform-of-an-array/ Given an array of integers arr, replace each element with its rank. The rank represents how large the element…

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

LeetCode 1598. Crawler Log Folder

Description https://leetcode.com/problems/crawler-log-folder/ The Leetcode file system keeps a log each time some user performs a change folder operation. The operations are described…

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

LeetCode 1800. Maximum Ascending Subarray Sum

Description https://leetcode.com/problems/maximum-ascending-subarray-sum/ Given an array of positive integers nums, return the maximum possible sum of an ascending subarray in nums. A subarray is defined as…

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

LeetCode 941. Valid Mountain Array

Description https://leetcode.com/problems/valid-mountain-array/ Given an array of integers arr, return true if and only if it is a valid mountain array. Recall that arr…

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

LeetCode 1582. Special Positions in a Binary Matrix

Description https://leetcode.com/problems/special-positions-in-a-binary-matrix/ Given a rows x cols matrix mat, where mat[i][j] is either 0 or 1, return the number of special positions in mat. A position (i,j) is called special if mat[i][j] == 1 and all other elements…

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

LeetCode 896. Monotonic Array

Description https://leetcode.com/problems/monotonic-array/ An array is monotonic if it is either monotone increasing or monotone decreasing. An array A is monotone increasing if for all i…

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

LeetCode 1196. How Many Apples Can You Put into the Basket

Description https://leetcode.com/problems/how-many-apples-can-you-put-into-the-basket/ You have some apples, where arr[i] is the weight of the i-th apple.  You also have a basket that can carry…

Continue Reading
  • Posted on March 24, 2021March 25, 2021
  • Array

LeetCode 1260. Shift 2D Grid

Description https://leetcode.com/problems/shift-2d-grid/ Given a 2D grid of size m x n and an integer k. You need to shift the grid k times. In one shift operation: Element…

Continue Reading

Posts navigation

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