227. Basic Calculator II
Problem Given a string s which represents an expression, evaluate this expression and return its value. The integer division ...
Problem Given a string s which represents an expression, evaluate this expression and return its value. The integer division ...
Problem Given the root of a perfect binary tree, reverse the node values at each odd level of the tree. For example, suppose...
Problem You are given a string s, which is known to be a concatenation of anagrams of some string t. Return the minimum possi...
Problem The thief has found himself a new place for his thievery again. There is only one entrance to this area, called root....
Problem Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2, also repre...
Problem You are given an integer array arr of length n that represents a permutation of the integers in the range [0, n - 1]....
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...
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...
Problem Given an array of integers temperatures represents the daily temperatures, return an array answer such that answer[i]...
Problem Given a circular integer array nums (i.e., the next element of nums[nums.length - 1] is nums[0]), return the next gre...
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...
Problem You are given a string s and an integer repeatLimit. Construct a new string repeatLimitedString using the characters ...
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 ...
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...
Problem You are given an integer array arr. You can choose a set of integers and remove all the occurrences of these integers...
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 ...
Problem You are given an array nums consisting of positive integers. Starting with score = 0, apply the following algorithm: ...
Problem You are given a 0-indexed array nums and a non-negative integer k. In one operation, you can do the following: Choos...
跟 2981. Find Longest Special Substring That Occurs Thrice I 一模一样,只不过 s 的长度上限从 50 增加到 5 * 10⁵。 https://leetcode.com/problems/f...
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...
Problem The chess knight has a unique movement, it may move two squares vertically and one square horizontally, or two square...
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 ...
Problem You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse ord...
Problem An array is considered special if every pair of its adjacent elements contains two numbers with different parity. You...
Problem You are given a 0-indexed 2D integer array of events where events[i] = [startTimeᵢ, endTimeᵢ, valueᵢ]. The iᵗʰ event ...
Problem You are given an integer array nums where the iᵗʰ bag contains nums[i] balls. You are also given an integer maxOperat...
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 ...
Problem You are given an integer array banned and two integers n and maxSum. You are choosing some number of integers followi...
Problem You are given two strings start and target, both of length n. Each string consists only of the characters 'L', 'R', a...
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, ...
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...
Problem You are given a 0-indexed string s and a 0-indexed integer array spaces that describes the indices in the original st...