leetcode icon indicating copy to clipboard operation
leetcode copied to clipboard

Provide all my solutions and explanations in Chinese for all the Leetcode coding problems.

Results 207 leetcode issues
Sort by recently updated
recently updated
newest added

Given the following details of a matrix with `n` columns and `2` rows : * The matrix is a binary matrix, which means each element in the matrix can be ...

There is an `m x n` matrix that is initialized to all `0`'s. There is also a 2D array `indices` where each `indices[i] = [ri, ci]` represents a 0-indexed location ...

Given an array `nums` of positive integers. Your task is to select some subset of `nums`, multiply each element by an integer and add all these numbers. The array is...

Given a string s of `'('` , `')'` and lowercase English characters. Your task is to remove the minimum number of parentheses ( `'('` or `')'`, in any positions )...

Given an array of integers `nums` and an integer `k`. A continuous subarray is called nice if there are `k` odd numbers on it. Return  _the number of nice sub-arrays_....

You are given two strings `s1` and `s2` of equal length consisting of letters `"x"` and `"y"` only. Your task is to make these two strings equal to each other....

Given a rectangle of size `n` x `m`, return  _the minimum number of integer-sided squares that tile the rectangle_. Example 1: ![](https://assets.leetcode.com/uploads/2019/10/17/sample_11_1592.png) Input: n = 2, m = 3 Output:...

You are given an array of strings `arr`. A string `s` is formed by the concatenation of a subsequence of `arr` that has unique characters. Return  _the maximum possible length_  ...

Given 2 integers `n` and `start`. Your task is return any permutation `p` of `(0,1,2.....,2^n -1) `such that : * `p[0] = start` * `p[i]` and `p[i+1]` differ by only...

Given a callable function `f(x, y)` with a hidden formula and a value `z`, reverse engineer the formula and return *all positive integer pairs  _`x`_  and  _`y`_  where *`f(x,y) ==...