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=i1g8vAI8nTs) [Click below image to watch YouTube Video](https://www.youtube.com/watch?v=i1g8vAI8nTs) [![Video](https://img.youtube.com/vi/i1g8vAI8nTs/0.jpg)](https://www.youtube.com/watch?v=i1g8vAI8nTs) Roman numerals are represented by seven different symbols: `I`, `V`, `X`, `L`, `C`, `D` and `M`. Symbol Value I 1 V...

[请点击下方图片观看讲解视频](https://www.youtube.com/watch?v=0GYiR4eqkP8) [Click below image to watch YouTube Video](https://www.youtube.com/watch?v=0GYiR4eqkP8) [![Video](https://img.youtube.com/vi/0GYiR4eqkP8/0.jpg)](https://www.youtube.com/watch?v=0GYiR4eqkP8) Roman numerals are represented by seven different symbols: `I`, `V`, `X`, `L`, `C`, `D` and `M`. **Symbol Value** I 1 V...

[请点击下方图片观看讲解视频](https://www.youtube.com/watch?v=faKzb49Ja-A) [Click below image to watch YouTube Video](https://www.youtube.com/watch?v=faKzb49Ja-A) [![Video](https://img.youtube.com/vi/faKzb49Ja-A/0.jpg)](https://www.youtube.com/watch?v=faKzb49Ja-A) You are given an integer array `height` of length `n`. There are `n` vertical lines drawn such that the two endpoints...

[请点击下方图片观看讲解视频](https://www.youtube.com/watch?v=apTAJ5i-cMI) [Click below image to watch YouTube Video](https://www.youtube.com/watch?v=apTAJ5i-cMI) [![Video](https://img.youtube.com/vi/apTAJ5i-cMI/0.jpg)](https://www.youtube.com/watch?v=apTAJ5i-cMI) Given an integer `x`, return `true` _if_`x` _is a_ _ **palindrome**_ _, and_`false` _otherwise_. **Example 1:** **Input:** x = 121 **Output:**...

[请点击下方图片观看讲解视频](https://www.youtube.com/watch?v=XsU4zMfthyo) [Click below image to watch YouTube Video](https://www.youtube.com/watch?v=XsU4zMfthyo) [![Video](https://img.youtube.com/vi/XsU4zMfthyo/0.jpg)](https://www.youtube.com/watch?v=XsU4zMfthyo) Given a signed 32-bit integer `x`, return `x` _with its digits reversed_. If reversing `x` causes the value to go outside...

[请点击下方图片观看讲解视频](https://www.youtube.com/watch?v=txfjI6FuII8) [Click below image to watch YouTube Video](https://www.youtube.com/watch?v=txfjI6FuII8) [![Video](https://img.youtube.com/vi/txfjI6FuII8/0.jpg)](https://www.youtube.com/watch?v=txfjI6FuII8) The string `"PAYPALISHIRING"` is written in a zigzag pattern on a given number of rows like this: (you may want to...

[请点击下方图片观看讲解视频](https://www.youtube.com/watch?v=a5SdVUPiCZw) [Click below image to watch YouTube Video](https://www.youtube.com/watch?v=a5SdVUPiCZw) [![Video](https://img.youtube.com/vi/a5SdVUPiCZw/0.jpg)](https://www.youtube.com/watch?v=a5SdVUPiCZw) Given a string `s`, return _the longest_ _palindromic_ _substring_ in `s`. **Example 1:** **Input:** s = "babad" **Output:** "bab" **Explanation:** "aba"...

[请点击下方图片观看讲解视频](https://www.youtube.com/watch?v=aeDKMb-8V9s) [Click below image to watch YouTube Video](https://www.youtube.com/watch?v=aeDKMb-8V9s) [![Video](https://img.youtube.com/vi/aeDKMb-8V9s/0.jpg)](https://www.youtube.com/watch?v=aeDKMb-8V9s) Given two sorted arrays `nums1` and `nums2` of size `m` and `n` respectively, return **the median** of the two sorted arrays....

[请点击下方图片观看讲解视频](https://www.youtube.com/watch?v=GAVVjx1FSZg) [Click below image to watch YouTube Video](https://www.youtube.com/watch?v=GAVVjx1FSZg) [![Video](https://img.youtube.com/vi/GAVVjx1FSZg/0.jpg)](https://www.youtube.com/watch?v=GAVVjx1FSZg) Given a string `s`, find the length of the **longest** **substring** without repeating characters. **Example 1:** **Input:** s = "abcabcbb" **Output:**...

[请点击下方图片观看讲解视频](https://www.youtube.com/watch?v=FPkUYlKPGU8) [Click below image to watch YouTube Video](https://www.youtube.com/watch?v=FPkUYlKPGU8) [![Video](https://img.youtube.com/vi/FPkUYlKPGU8/0.jpg)](https://www.youtube.com/watch?v=FPkUYlKPGU8) You are given two **non-empty** linked lists representing two non-negative integers. The digits are stored in **reverse order** , and each...