leetcode
leetcode copied to clipboard
Provide all my solutions and explanations in Chinese for all the Leetcode coding problems.
[请点击下方图片观看讲解视频](https://www.youtube.com/watch?v=i1g8vAI8nTs) [Click below image to watch YouTube Video](https://www.youtube.com/watch?v=i1g8vAI8nTs) [](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) [](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) [](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) [](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) [](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) [](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) [](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) [](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) [](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) [](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...