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 May 24, 2021May 24, 2021
  • Array

LeetCode 1005. Maximize Sum Of Array After K Negations

Description https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/ Given an array nums of integers, we must modify the array in the following way: we choose an i and replace nums[i] with -nums[i], and we repeat…

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

LeetCode 1282. Group the People Given the Group Size They Belong To

Description https://leetcode.com/problems/group-the-people-given-the-group-size-they-belong-to/ There are n people that are split into some unknown number of groups. Each person is labeled with a unique ID from 0 to n -…

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

LeetCode 1742. Maximum Number of Balls in a Box

Description https://leetcode.com/problems/maximum-number-of-balls-in-a-box/ You are working in a ball factory where you have n balls numbered from lowLimit up to highLimit inclusive (i.e., n == highLimit – lowLimit +…

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

LeetCode 703. Kth Largest Element in a Stream

Description https://leetcode.com/problems/kth-largest-element-in-a-stream/ Design a class to find the kth largest element in a stream. Note that it is the kth largest element in the sorted…

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

LeetCode 1103. Distribute Candies to People

Description https://leetcode.com/problems/distribute-candies-to-people/ We distribute some number of candies, to a row of n = num_people people in the following way: We then give 1 candy…

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

LeetCode 119. Pascal’s Triangle II

Description https://leetcode.com/problems/pascals-triangle-ii/ Given an integer rowIndex, return the rowIndexth (0-indexed) row of the Pascal’s triangle. In Pascal’s triangle, each number is the sum of the…

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

LeetCode 1694. Reformat Phone Number

Description https://leetcode.com/problems/reformat-phone-number/ You are given a phone number as a string number. number consists of digits, spaces ‘ ‘, and/or dashes ‘-‘. You would like…

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

LeetCode 1450. Number of Students Doing Homework at a Given Time

Description https://leetcode.com/problems/number-of-students-doing-homework-at-a-given-time/ Given two integer arrays startTime and endTime and given an integer queryTime. The ith student started doing their homework at the time startTime[i] and finished it at…

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

LeetCode 1848. Minimum Distance to the Target Element

Description https://leetcode.com/problems/minimum-distance-to-the-target-element/ Given an integer array nums (0-indexed) and two integers target and start, find an index i such that nums[i] == target and abs(i – start) is minimized. Note that abs(x) is the absolute…

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

LeetCode 1496. Path Crossing

Description https://leetcode.com/problems/path-crossing/ Given a string path, where path[i] = ‘N’, ‘S’, ‘E’ or ‘W’, each representing moving one unit north, south, east, or west, respectively. You start…

Continue Reading

Posts navigation

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