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 April 29, 2021April 29, 2021
  • Array

LeetCode 1475. Final Prices With a Special Discount in a Shop

Description https://leetcode.com/problems/final-prices-with-a-special-discount-in-a-shop/ Given the array prices where prices[i] is the price of the ith item in a shop. There is a special discount for items in…

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

LeetCode 922. Sort Array By Parity II

Description https://leetcode.com/problems/sort-array-by-parity-ii/ Given an array of integers nums, half of the integers in nums are odd, and the other half are even. Sort the array…

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

LeetCode 645. Set Mismatch

Description https://leetcode.com/problems/set-mismatch/ You have a set of integers s, which originally contains all the numbers from 1 to n. Unfortunately, due to some error,…

Continue Reading
  • Posted on April 24, 2021July 19, 2021
  • Array

LeetCode 1629. Slowest Key

Description https://leetcode.com/problems/slowest-key/ A newly designed keypad was tested, where a tester pressed a sequence of n keys, one at a time. You…

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

LeetCode 734. Sentence Similarity

Description https://leetcode.com/problems/sentence-similarity/ We can represent a sentence as an array of words, for example, the sentence “I am happy with leetcode” can be represented…

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

LeetCode 747. Largest Number At Least Twice of Others

Description https://leetcode.com/problems/largest-number-at-least-twice-of-others/ You are given an integer array nums where the largest integer is unique. Find whether the largest element in the array…

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

LeetCode 243. Shortest Word Distance

Description https://leetcode.com/problems/shortest-word-distance/ Given an array of strings wordsDict and two different strings that already exist in the array word1 and word2, return the shortest distance between…

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

LeetCode 1608. Special Array With X Elements Greater Than or Equal X

Description https://leetcode.com/problems/special-array-with-x-elements-greater-than-or-equal-x/ You are given an array nums of non-negative integers. nums is considered special if there exists a number x such that there are exactly x numbers in nums that are greater than…

Continue Reading
  • Posted on April 20, 2021April 20, 2021
  • Array

LeetCode 1437. Check If All 1’s Are at Least Length K Places Away

Description https://leetcode.com/problems/check-if-all-1s-are-at-least-length-k-places-away/ Given an array nums of 0s and 1s and an integer k, return True if all 1’s are at least k places away from each…

Continue Reading
  • Posted on April 20, 2021April 20, 2021
  • Array

LeetCode 1287. Element Appearing More Than 25% In Sorted Array

Description https://leetcode.com/problems/element-appearing-more-than-25-in-sorted-array/ Given an integer array sorted in non-decreasing order, there is exactly one integer in the array that occurs more than…

Continue Reading

Posts navigation

Previous Page Page 1 … Page 4 Page 5 Page 6 … 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