119. Pascal's Triangle II Problem Given an integer rowIndex, return the rowIndexᵗʰ (0-indexed) row of the Pascal’s triangle. In Pascal’s triangle, each... 2025-01-28 easy
1462. Course Schedule IV Problem There are a total of numCourses courses you have to take, labeled from 0 to numCourses - 1. You are given an array pr... 2025-01-27 medium
45. Jump Game II Problem You are given a 0-indexed array of integers nums of length n. You are initially positioned at nums[0]. Each element n... 2025-01-27 medium todo
2948. Make Lexicographically Smallest Array by Swapping Elements Problem You are given a 0-indexed array of positive integers nums and a positive integer limit. In one operation, you can cho... 2025-01-26 medium
2412. Minimum Money Required Before Transactions Problem You are given a 0-indexed 2D integer array transactions, where transactions[i] = [costᵢ, cashbackᵢ]. The array descri... 2025-01-25 hard
2920. Maximum Points After Collecting Coins From All Nodes Problem There exists an undirected tree rooted at node 0 with n nodes labeled from 0 to n - 1. You are given a 2D integer arr... 2025-01-23 hard
1267. Count Servers that Communicate Problem You are given a map of a server center, represented as a m * n integer matrix grid, where 1 means that on that c... 2025-01-23 medium
1561. Maximum Number of Coins You Can Get Problem There are 3n piles of coins of varying size, you and your friends will take piles of coins as follows: In each step,... 2025-01-22 medium
2017. Grid Game Problem You are given a 0-indexed 2D array grid of size 2 x n, where grid[r][c] represents the number of points at position (... 2025-01-22 medium
2218. Maximum Value of K Coins From Piles Problem There are n piles of coins on a table. Each pile consists of a positive number of coins of assorted denominations. In... 2025-01-21 hard
2661. First Completely Painted Row or Column Problem You are given a 0-indexed integer array arr, and an m x n integer matrix mat. arr and mat both contain all the intege... 2025-01-20 medium
2239. Find Closest Number to Zero Problem Given an integer array nums of size n, return the number with the value closest to 0 in nums. If there are multiple a... 2025-01-20 easy
42. Trapping Rain Water Problem Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water ... 2025-01-19 hard todo
2266. Count Number of Texts Problem Alice is texting Bob using her phone. The mapping of digits to letters is shown in the figure below. telephone In ord... 2025-01-19 medium
1368. Minimum Cost to Make at Least One Valid Path in a Grid Problem Given an m x n grid. Each cell of the grid has a sign pointing to the next cell you should visit if you are currently... 2025-01-18 hard
3097. Shortest Subarray With OR at Least K II Problem 跟 3095. Shortest Subarray With OR at Least K I 一模一样,只是问题规模更大。 https://leetcode.cn/problems/shortest-subarray-with-or-... 2025-01-17 medium
2683. Neighboring Bitwise XOR Problem A 0-indexed array derived with length n is derived by computing the bitwise XOR (⊕) of adjacent values in a bina... 2025-01-17 medium
2425. Bitwise XOR of All Pairings Problem You are given two 0-indexed arrays, nums1 and nums2, consisting of non-negative integers. There exists another array,... 2025-01-16 medium
3095. Shortest Subarray With OR at Least K I Problem You are given an array nums of non-negative integers and an integer k. An array is called special if the bitwise OR o... 2025-01-16 easy
2429. Minimize XOR Problem Given two positive integers num1 and num2, find the positive integer x such that: x has the same number of set bits ... 2025-01-15 medium
3066. Minimum Operations to Exceed Threshold Value II Problem You are given a 0-indexed integer array nums, and an integer k. In one operation, you will: Take the two smallest in... 2025-01-14 medium
2657. Find the Prefix Common Array of Two Arrays Problem You are given two 0-indexed integer permutations A and B of length n. A prefix common array of A and B is an array C ... 2025-01-14 medium
3065. Minimum Operations to Exceed Threshold Value I Problem You are given a 0-indexed integer array nums, and an integer k. In one operation, you can remove one occurrence of th... 2025-01-14 easy
3414. Maximum Score of Non-overlapping Intervals Problem You are given a 2D integer array intervals, where intervals[i] = [lᵢ, rᵢ, weightᵢ]. Interval i starts at position lᵢ ... 2025-01-13 hard
3223. Minimum Length of String After Operations Problem You are given a string s. You can perform the following process on s any number of times: Choose an index i in the s... 2025-01-13 medium
2116. Check if a Parentheses String Can Be Valid Problem A parentheses string is a non-empty string consisting only of '(' and ')'. It is valid if any of the following condit... 2025-01-12 medium
2275. Largest Combination With Bitwise AND Greater Than Zero Problem The bitwise AND of an array nums is the bitwise AND of all integers in nums. For example, for nums = [1, 5, 3], the ... 2025-01-12 medium
1400. Construct K Palindrome Strings Problem Given a string s and an integer k, return true if you can use all the characters in s to construct k palindrome strin... 2025-01-11 medium
3270. Find the Key of the Numbers Problem You are given three positive integers num1, num2, and num3. The key of num1, num2, and num3 is defined as a four-digi... 2025-01-11 easy
916. Word Subsets Problem You are given two string arrays words1 and words2. A string b is a subset of string a if every letter in b occurs in ... 2025-01-10 medium
2185. Counting Words With a Given Prefix Problem You are given an array of strings words and a string pref. Return the number of strings in words that contain pref as... 2025-01-09 easy
3298. Count Substrings That Can Be Rearranged to Contain a String II Problem 跟 3297. Count Substrings That Can Be Rearranged to Contain a String I 一模一样,只是多了一个注意点: Note that the memory limits in ... 2025-01-09 hard