227. Basic Calculator II Problem Given a string s which represents an expression, evaluate this expression and return its value. The integer division ... 2024-12-20 medium
2415. Reverse Odd Levels of Binary Tree Problem Given the root of a perfect binary tree, reverse the node values at each odd level of the tree. For example, suppose... 2024-12-20 medium
3138. Minimum Length of Anagram Concatenation Problem You are given a string s, which is known to be a concatenation of anagrams of some string t. Return the minimum possi... 2024-12-20 medium
337. House Robber III Problem The thief has found himself a new place for his thievery again. There is only one entrance to this area, called root.... 2024-12-19 medium
43. Multiply Strings Problem Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2, also repre... 2024-12-19 medium
769. Max Chunks To Make Sorted Problem You are given an integer array arr of length n that represents a permutation of the integers in the range [0, n - 1].... 2024-12-19 medium
714. Best Time to Buy and Sell Stock with Transaction Fee Problem You are given an array prices where prices[i] is the price of a given stock on the iᵗʰ day, and an integer fee repres... 2024-12-18 medium
309. Best Time to Buy and Sell Stock with Cooldown Problem You are given an array prices where prices[i] is the price of a given stock on the iᵗʰ day. Find the maximum profit y... 2024-12-18 medium
739. Daily Temperatures Problem Given an array of integers temperatures represents the daily temperatures, return an array answer such that answer[i]... 2024-12-18 medium
503. Next Greater Element II Problem Given a circular integer array nums (i.e., the next element of nums[nums.length - 1] is nums[0]), return the next gre... 2024-12-18 medium
3291. Minimum Number of Valid Strings to Form Target I Problem You are given an array of strings words and a string target. A string x is called valid if x is a prefix of any strin... 2024-12-18 medium hard
2182. Construct String With Repeat Limit Problem You are given a string s and an integer repeatLimit. Construct a new string repeatLimitedString using the characters ... 2024-12-17 medium
122. Best Time to Buy and Sell Stock II Problem You are given an integer array prices where prices[i] is the price of a given stock on the iᵗʰ day. On each day, you ... 2024-12-18 medium
1792. Maximum Average Pass Ratio Problem There is a school that has classes of students and each class will be having a final exam. You are given a 2D integer... 2024-12-15 medium
1338. Reduce Array Size to The Half Problem You are given an integer array arr. You can choose a set of integers and remove all the occurrences of these integers... 2024-12-15 medium
2762. Continuous Subarrays Problem You are given a 0-indexed integer array nums. A subarray of nums is called continuous if: Let i, i + 1, …, j be the ... 2024-12-14 medium
2593. Find Score of an Array After Marking All Elements Problem You are given an array nums consisting of positive integers. Starting with score = 0, apply the following algorithm: ... 2024-12-13 medium
2779. Maximum Beauty of an Array After Applying Operation Problem You are given a 0-indexed array nums and a non-negative integer k. In one operation, you can do the following: Choos... 2024-12-11 medium
2982. Find Longest Special Substring That Occurs Thrice II 跟 2981. Find Longest Special Substring That Occurs Thrice I 一模一样,只不过 s 的长度上限从 50 增加到 5 * 10⁵。 https://leetcode.com/problems/f... 2024-12-10 medium
2981. Find Longest Special Substring That Occurs Thrice I Problem You are given a string s that consists of lowercase English letters. A string is called special if it is made up of o... 2024-12-10 medium
935. Knight Dialer Problem The chess knight has a unique movement, it may move two squares vertically and one square horizontally, or two s... 2024-12-10 medium
954. Array of Doubled Pairs Problem Given an integer array of even length arr, return true if it is possible to reorder arr such that arr[2 * i + 1] = 2 ... 2024-12-09 medium
2. Add Two Numbers Problem You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse ord... 2024-12-09 medium
3152. Special Array II Problem An array is considered special if every pair of its adjacent elements contains two numbers with different parity. You... 2024-12-09 medium
2054. Two Best Non-Overlapping Events Problem You are given a 0-indexed 2D integer array of events where events[i] = [startTimeᵢ, endTimeᵢ, valueᵢ]. The iᵗʰ event ... 2024-12-08 medium todo
1760. Minimum Limit of Balls in a Bag Problem You are given an integer array nums where the iᵗʰ bag contains nums[i] balls. You are also given an integer maxOperat... 2024-12-07 medium
688. Knight Probability in Chessboard Problem On an n x n chessboard, a knight starts at the cell (row, column) and attempts to make exactly k moves. The rows and ... 2024-12-07 medium
2554. Maximum Number of Integers to Choose From a Range I Problem You are given an integer array banned and two integers n and maxSum. You are choosing some number of integers followi... 2024-12-06 medium
2337. Move Pieces to Obtain a String Problem You are given two strings start and target, both of length n. Each string consists only of the characters 'L', 'R', a... 2024-12-05 medium
3001. Minimum Moves to Capture The Queen Problem There is a 1-indexed 8 x 8 chessboard containing 3 pieces. You are given 6 integers a, b, c, d, e, and f where: (a, ... 2024-12-05 medium
2825. Make String a Subsequence Using Cyclic Increments Problem You are given two 0-indexed strings str1 and str2. In an operation, you select a set of indices in str1, and for each... 2024-12-04 medium
2109. Adding Spaces to a String Problem You are given a 0-indexed string s and a 0-indexed integer array spaces that describes the indices in the original st... 2024-12-03 medium