# LeetCode 327. Count of Range Sum

Description https://leetcode.com/problems/count-of-range-sum/ Given an integer array nums and two integers lower and upper, return the number of range sums that lie in [lower, upper] inclusive. Range sum S(i, j) is…

# LeetCode 289. Game of Life

Description https://leetcode.com/problems/game-of-life/ According to Wikipedia’s article: “The Game of Life, also known simply as Life, is a cellular automaton devised by the British…

# LeetCode 422. Valid Word Square

Description https://leetcode.com/problems/valid-word-square/ Given an array of strings words, return true if it forms a valid word square. A sequence of strings forms a valid word…

Description https://leetcode.com/problems/task-scheduler/ Given a characters array tasks, representing the tasks a CPU needs to do, where each letter represents a different…

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