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 August 19, 2021August 20, 2021
  • Array

LeetCode 680. Valid Palindrome II

Description https://leetcode.com/problems/valid-palindrome-ii/ Given a string s, return true if the s can be palindrome after deleting at most one character from it. Example 1: Input: s =…

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

LeetCode 325. Maximum Size Subarray Sum Equals k

Description https://leetcode.com/problems/maximum-size-subarray-sum-equals-k/ Given an integer array nums and an integer k, return the maximum length of a subarray that sums to k. If there isn’t…

Continue Reading
  • Posted on August 9, 2021August 9, 2021
  • Array

LeetCode 1769. Minimum Number of Operations to Move All Balls to Each Box

Description https://leetcode.com/problems/minimum-number-of-operations-to-move-all-balls-to-each-box/ You have n boxes. You are given a binary string boxes of length n, where boxes[i] is ‘0’ if the ith box is empty, and ‘1’ if it contains one ball. In one operation,…

Continue Reading
  • Posted on August 2, 2021August 2, 2021
  • Array

LeetCode 229. Majority Element II

Description https://leetcode.com/problems/majority-element-ii/ Given an integer array of size n, find all elements that appear more than ⌊ n/3 ⌋ times. Follow-up: Could you solve…

Continue Reading
  • Posted on July 31, 2021July 31, 2021
  • Array

LeetCode 1314. Matrix Block Sum

Description https://leetcode.com/problems/matrix-block-sum/ Given a m x n matrix mat and an integer k, return a matrix answer where each answer[i][j] is the sum of all elements mat[r][c] for: i – k <=…

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

LeetCode 628. Maximum Product of Three Numbers

Description https://leetcode.com/problems/maximum-product-of-three-numbers/ Given an integer array nums, find three numbers whose product is maximum and return the maximum product. Example 1: Input:…

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

LeetCode 413. Arithmetic Slices

Description https://leetcode.com/problems/arithmetic-slices/ An integer array is called arithmetic if it consists of at least three elements and if the difference between any…

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

LeetCode 1929. Concatenation of Array

Description https://leetcode.com/problems/concatenation-of-array/ Given an integer array nums of length n, you want to create an array ans of length 2n where ans[i] == nums[i] and ans[i + n] == nums[i] for 0…

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

LeetCode 1920. Build Array from Permutation

Description https://leetcode.com/problems/build-array-from-permutation/ Given a zero-based permutation nums (0-indexed), build an array ans of the same length where ans[i] = nums[nums[i]] for each 0 <= i < nums.length and return it. A zero-based…

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

LeetCode 295. Find Median from Data Stream

Description https://leetcode.com/problems/find-median-from-data-stream/ The median is the middle value in an ordered integer list. If the size of the list is even, there…

Continue Reading

Posts navigation

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