# LeetCode 1455. Check If a Word Occurs As a Prefix of Any Word in a Sentence

Description https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/ Given a sentence that consists of some words separated by a single space, and a searchWord. You have to check if searchWord is a…

# LeetCode 1196. How Many Apples Can You Put into the Basket

Description https://leetcode.com/problems/how-many-apples-can-you-put-into-the-basket/ You have some apples, where arr[i] is the weight of the i-th apple.  You also have a basket that can carry…

# LeetCode 1260. Shift 2D Grid

Description https://leetcode.com/problems/shift-2d-grid/ Given a 2D grid of size m x n and an integer k. You need to shift the grid k times. In one shift operation: Element…

# LeetCode 1446. Consecutive Characters

Description https://leetcode.com/problems/consecutive-characters/ Given a string s, the power of the string is the maximum length of a non-empty substring that contains only…

# LeetCode 868. Binary Gap

Description https://leetcode.com/problems/binary-gap/ Given a positive integer n, find and return the longest distance between any two adjacent 1‘s in the binary representation of n. If there are…

# LeetCode 1636. Sort Array by Increasing Frequency

Description https://leetcode.com/problems/sort-array-by-increasing-frequency/ Given an array of integers nums, sort the array in increasing order based on the frequency of the values. If multiple…

# LeetCode 566. Reshape the Matrix

Description https://leetcode.com/problems/reshape-the-matrix/ In MATLAB, there is a very useful function called ‘reshape’, which can reshape a matrix into a new…

# LeetCode 1200. Minimum Absolute Difference

Description https://leetcode.com/problems/minimum-absolute-difference/ Given an array of distinct integers arr, find all pairs of elements with the minimum absolute difference of any two elements.  Return a…

# LeetCode 1399. Count Largest Group

Description https://leetcode.com/problems/count-largest-group/ Given an integer n. Each number from 1 to n is grouped according to the sum of its digits.  Return how many groups have the…

# LeetCode 575. Distribute Candies

Description https://leetcode.com/problems/distribute-candies/ Alice has n candies, where the ith candy is of type candyType[i]. Alice noticed that she started to gain weight, so she visited…