# LeetCode 1057. Campus Bikes

Description https://leetcode.com/problems/campus-bikes/ On a campus represented on the X-Y plane, there are n workers and m bikes, with n <= m. You are given an…

# LeetCode 209. Minimum Size Subarray Sum

Description https://leetcode.com/problems/minimum-size-subarray-sum/ Given an array of positive integers nums and a positive integer target, return the minimal length of a contiguous subarray [numsl, numsl+1, …,…

# LeetCode 1146. Snapshot Array

Description https://leetcode.com/problems/snapshot-array/ Implement a SnapshotArray that supports the following interface: SnapshotArray(int length) initializes an array-like data structure with the given length.  Initially,…

# LeetCode 1138. Alphabet Board Path

Description https://leetcode.com/problems/alphabet-board-path/ On an alphabet board, we start at position (0, 0), corresponding to character board[0][0]. Here, board = [“abcde”, “fghij”, “klmno”, “pqrst”,…

# LeetCode 2012. Sum of Beauty in the Array

Description https://leetcode.com/problems/sum-of-beauty-in-the-array/ You are given a 0-indexed integer array nums. For each index i (1 <= i <= nums.length – 2) the beauty of nums[i] equals: 2, if nums[j] <…

# LeetCode 2011. Final Value of Variable After Performing Operations

Description https://leetcode.com/problems/final-value-of-variable-after-performing-operations/ There is a programming language with only four operations and one variable X: ++X and X++ increments the value of the variable X by 1. –X and X– decrements the value of the variable X by 1.…

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