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

You are given a `grid` of size `N x N`, and each cell of this grid has a lamp that is initially turned off. You are also given an array...

[请点击下方图片观看讲解视频](https://www.youtube.com/watch?v=K9fYCNQKXU0) [Click below image to watch YouTube Video](https://www.youtube.com/watch?v=K9fYCNQKXU0) [![Video](https://img.youtube.com/vi/K9fYCNQKXU0/0.jpg)](https://www.youtube.com/watch?v=K9fYCNQKXU0) Determine if a `9 x 9` Sudoku board is valid. Only the filled cells need to be validated **according to the...

[请点击下方图片观看讲解视频](https://www.youtube.com/watch?v=iJ9rZNC4_PQ) [Click below image to watch YouTube Video](https://www.youtube.com/watch?v=iJ9rZNC4_PQ) [![Video](https://img.youtube.com/vi/iJ9rZNC4_PQ/0.jpg)](https://www.youtube.com/watch?v=iJ9rZNC4_PQ) Given an unsorted integer array `nums`, return the smallest missing positive integer. You must implement an algorithm that runs in `O(n)`...

[请点击下方图片观看讲解视频](https://www.youtube.com/watch?v=z4aLiZuH6VU) [Click below image to watch YouTube Video](https://www.youtube.com/watch?v=z4aLiZuH6VU) [![Video](https://img.youtube.com/vi/z4aLiZuH6VU/0.jpg)](https://www.youtube.com/watch?v=z4aLiZuH6VU) Given a collection of numbers, `nums`, that might contain duplicates, return _all possible unique permutations in any order._ **Example 1:** Input:...

[请点击下方图片观看讲解视频](https://www.youtube.com/watch?v=JEUC0a3lbZQ) [Click below image to watch YouTube Video](https://www.youtube.com/watch?v=JEUC0a3lbZQ) [![Video](https://img.youtube.com/vi/JEUC0a3lbZQ/0.jpg)](https://www.youtube.com/watch?v=JEUC0a3lbZQ) Implement the `myAtoi(string s)` function, which converts a string to a 32-bit signed integer (similar to C/C++'s `atoi` function). The algorithm...

  Given a positive 32-bit integer n, you need to find the smallest 32-bit integer which has exactly the same digits existing in the integer n and is greater in value...

  Given a non-empty string  _s_  and a dictionary  _wordDict_  containing a list of non-empty words, add spaces in  _s_  to construct a sentence where each word is a valid dictionary...

  Given a root node reference of a BST and a key, delete the node with the given key in the BST. Return the root node reference (possibly updated) of the...

The problem No.1314 has not been added on Leetcode!

  Given an unsorted array return whether an increasing subsequence of length 3 exists or not in the array. Formally the function should: > Return true if there exists  _i, j,...