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 =…
Be a Good Techer and Tech for Good. www.goodtecher.com
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 =…
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…
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,…
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…
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 <=…
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:…
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…
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…
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…
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…