# 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 =…

# 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…

# 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,…

# 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…

# 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 <=…

# 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:…

# 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…

# 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…

# 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…

# 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…