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 February 18, 2021September 19, 2021
  • Array

LeetCode 1165. Single-Row Keyboard

Description https://leetcode.com/problems/single-row-keyboard/ There is a special keyboard with all keys in a single row. Given a string keyboard of length 26 indicating the…

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

LeetCode 1389. Create Target Array in the Given Order

Description https://leetcode.com/problems/create-target-array-in-the-given-order/ Given two arrays of integers nums and index. Your task is to create target array under the following rules: Initially target array is empty. From…

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

LeetCode 1313. Decompress Run-Length Encoded List

Description https://leetcode.com/problems/decompress-run-length-encoded-list/ We are given a list nums of integers representing a list compressed with run-length encoding. Consider each adjacent pair of elements [freq,…

Continue Reading
  • Posted on February 17, 2021February 17, 2021
  • Array

LeetCode 1089. Duplicate Zeros

Description https://leetcode.com/problems/duplicate-zeros/ Given a fixed length array arr of integers, duplicate each occurrence of zero, shifting the remaining elements to the right. Note…

Continue Reading
  • Posted on February 16, 2021February 16, 2021
  • Array

LeetCode 1603. Design Parking System

Description https://leetcode.com/problems/design-parking-system/ Design a parking system for a parking lot. The parking lot has three kinds of parking spaces: big,…

Continue Reading
  • Posted on February 15, 2021February 15, 2021
  • Array

LeetCode 1512. Number of Good Pairs

Description https://leetcode.com/problems/number-of-good-pairs/ Given an array of integers nums. A pair (i,j) is called good if nums[i] == nums[j] and i < j. Return the number of good pairs. Example 1: Input: nums = [1,2,3,1,1,3]…

Continue Reading
  • Posted on February 15, 2021February 15, 2021
  • Array

LeetCode 1365. How Many Numbers Are Smaller Than the Current Number

Description https://leetcode.com/problems/how-many-numbers-are-smaller-than-the-current-number/ Given the array nums, for each nums[i] find out how many numbers in the array are smaller than it. That is,…

Continue Reading
  • Posted on February 14, 2021February 14, 2021
  • Array

LeetCode 1476. Subrectangle Queries

Description https://leetcode.com/problems/subrectangle-queries/ Implement the class SubrectangleQueries which receives a rows x cols rectangle as a matrix of integers in the constructor and supports two…

Continue Reading
  • Posted on February 13, 2021February 13, 2021
  • Array

LeetCode 1570. Dot Product of Two Sparse Vectors

Description https://leetcode.com/problems/dot-product-of-two-sparse-vectors/ Given two sparse vectors, compute their dot product. Implement class SparseVector: SparseVector(nums) Initializes the object with the vector nums dotProduct(vec) Compute the…

Continue Reading
  • Posted on February 12, 2021February 12, 2021
  • Array

LeetCode 1431. Kids With the Greatest Number of Candies

Description https://leetcode.com/problems/kids-with-the-greatest-number-of-candies/ Given the array candies and the integer extraCandies, where candies[i] represents the number of candies that the ith kid has. For each kid check if…

Continue Reading

Posts navigation

Previous Page Page 1 … Page 13 Page 14 Page 15 … 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