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 July 1, 2021July 11, 2021
  • Array

LeetCode 937. Reorder Data in Log Files

Description https://leetcode.com/problems/reorder-data-in-log-files/ You are given an array of logs. Each log is a space-delimited string of words, where the first word…

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

LeetCode 1913. Maximum Product Difference Between Two Pairs

Description https://leetcode.com/problems/maximum-product-difference-between-two-pairs/ The product difference between two pairs (a, b) and (c, d) is defined as (a * b) – (c * d). For example, the product…

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

LeetCode 1460. Make Two Arrays Equal by Reversing Sub-arrays

Description https://leetcode.com/problems/make-two-arrays-equal-by-reversing-sub-arrays/ Given two integer arrays of equal length target and arr. In one step, you can select any non-empty sub-array of arr and reverse it. You…

Continue Reading
  • Posted on June 18, 2021June 19, 2021
  • Array

LeetCode 1874. Minimize Product Sum of Two Arrays

Description https://leetcode.com/problems/all-paths-from-source-to-target/ The product sum of two equal-length arrays a and b is equal to the sum of a[i] * b[i] for all 0 <= i < a.length (0-indexed). For…

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

LeetCode 57. Insert Interval

Description https://leetcode.com/problems/insert-interval/ Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary). You may assume that…

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

LeetCode 1184. Distance Between Bus Stops

Description https://leetcode.com/problems/distance-between-bus-stops/ A bus has n stops numbered from 0 to n – 1 that form a circle. We know the distance between all pairs of neighboring stops…

Continue Reading
  • Posted on May 27, 2021May 27, 2021
  • Array

LeetCode 1640. Check Array Formation Through Concatenation

Description https://leetcode.com/problems/check-if-array-is-sorted-and-rotated/ You are given an array of distinct integers arr and an array of integer arrays pieces, where the integers in pieces are distinct. Your goal is…

Continue Reading
  • Posted on May 27, 2021May 27, 2021
  • Array

LeetCode 1752. Check if Array Is Sorted and Rotated

Description https://leetcode.com/problems/check-if-array-is-sorted-and-rotated/ Given an array nums, return true if the array was originally sorted in non-decreasing order, then rotated some number of positions (including zero).…

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

LeetCode 287. Find the Duplicate Number

Description https://leetcode.com/problems/find-the-duplicate-number/ Given an array of integers nums containing n + 1 integers where each integer is in the range [1, n] inclusive. There is only one…

Continue Reading
  • Posted on May 24, 2021May 24, 2021
  • Array

LeetCode 605. Can Place Flowers

Description https://leetcode.com/problems/can-place-flowers/ You have a long flowerbed in which some of the plots are planted, and some are not. However,…

Continue Reading

Posts navigation

Previous Page Page 1 Page 2 Page 3 Page 4 … 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