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

[请点击下方图片观看讲解视频](https://www.youtube.com/watch?v=Dnl3kz94tMs) [Click below image to watch YouTube Video](https://www.youtube.com/watch?v=Dnl3kz94tMs) [![Video](https://img.youtube.com/vi/Dnl3kz94tMs/0.jpg)](https://www.youtube.com/watch?v=Dnl3kz94tMs) Given a `m x n` `grid` filled with non-negative numbers, find a path from top left to bottom right, which minimizes...

[请点击下方图片观看讲解视频](https://www.youtube.com/watch?v=CaILMEIf_j8) [Click below image to watch YouTube Video](https://www.youtube.com/watch?v=CaILMEIf_j8) [![Video](https://img.youtube.com/vi/CaILMEIf_j8/0.jpg)](https://www.youtube.com/watch?v=CaILMEIf_j8) You are given an `m x n` integer array `grid`. There is a robot initially located at the top-left corner (i.e.,...

[请点击下方图片观看讲解视频](https://www.youtube.com/watch?v=nx1j7ZJjlFg) [Click below image to watch YouTube Video](https://www.youtube.com/watch?v=nx1j7ZJjlFg) [![Video](https://img.youtube.com/vi/nx1j7ZJjlFg/0.jpg)](https://www.youtube.com/watch?v=nx1j7ZJjlFg) There is a robot on an `m x n` grid. The robot is initially located at the top-left corner (i.e., `grid[0][0]`)....

[请点击下方图片观看讲解视频](https://www.youtube.com/watch?v=FpkZuPbkPMo) [Click below image to watch YouTube Video](https://www.youtube.com/watch?v=FpkZuPbkPMo) [![Video](https://img.youtube.com/vi/FpkZuPbkPMo/0.jpg)](https://www.youtube.com/watch?v=FpkZuPbkPMo) Given the `head` of a linked list, rotate the list to the right by `k` places. **Example 1:** ![](https://assets.leetcode.com/uploads/2020/11/13/rotate1.jpg) Input: head...

[请点击下方图片观看讲解视频](https://www.youtube.com/watch?v=Qy8RYT0S_Jc) [Click below image to watch YouTube Video](https://www.youtube.com/watch?v=Qy8RYT0S_Jc) [![Video](https://img.youtube.com/vi/Qy8RYT0S_Jc/0.jpg)](https://www.youtube.com/watch?v=Qy8RYT0S_Jc) The set `[1, 2, 3, ..., n]` contains a total of `n!` unique permutations. By listing and labeling all of the...

[请点击下方图片观看讲解视频](https://www.youtube.com/watch?v=-AhofTERj_k) [Click below image to watch YouTube Video](https://www.youtube.com/watch?v=-AhofTERj_k) [![Video](https://img.youtube.com/vi/-AhofTERj_k/0.jpg)](https://www.youtube.com/watch?v=-AhofTERj_k) Given a positive integer `n`, generate an `n x n` `matrix` filled with elements from `1` to `n2` in spiral order....

[请点击下方图片观看讲解视频](https://www.youtube.com/watch?v=tBJ647nEw7U) [Click below image to watch YouTube Video](https://www.youtube.com/watch?v=tBJ647nEw7U) [![Video](https://img.youtube.com/vi/tBJ647nEw7U/0.jpg)](https://www.youtube.com/watch?v=tBJ647nEw7U) Given a string `s` consisting of words and spaces, return _the length of the last word in the string._ A word...

[请点击下方图片观看讲解视频](https://www.youtube.com/watch?v=vYxLrcd2bhE) [Click below image to watch YouTube Video](https://www.youtube.com/watch?v=vYxLrcd2bhE) [![Video](https://img.youtube.com/vi/vYxLrcd2bhE/0.jpg)](https://www.youtube.com/watch?v=vYxLrcd2bhE) You are given an array of non-overlapping intervals `intervals` where `intervals[i] = [starti, endi]` represent the start and the end of...

[请点击下方图片观看讲解视频](https://www.youtube.com/watch?v=V461ochvdg8) [Click below image to watch YouTube Video](https://www.youtube.com/watch?v=V461ochvdg8) [![Video](https://img.youtube.com/vi/V461ochvdg8/0.jpg)](https://www.youtube.com/watch?v=V461ochvdg8) Given an array of `intervals` where `intervals[i] = [starti, endi]`, merge all overlapping intervals, and return _an array of the non-overlapping...

[请点击下方图片观看讲解视频](https://www.youtube.com/watch?v=Vb_k-WXbHvY) [Click below image to watch YouTube Video](https://www.youtube.com/watch?v=Vb_k-WXbHvY) [![Video](https://img.youtube.com/vi/Vb_k-WXbHvY/0.jpg)](https://www.youtube.com/watch?v=Vb_k-WXbHvY) Given an `m x n` `matrix`, return _all elements of the_ `matrix` _in spiral order_. **Example 1:** ![](https://assets.leetcode.com/uploads/2020/11/13/spiral1.jpg) Input: matrix =...