100. Same Tree 题目 Given two binary trees, write a function to check if they are the same or not. Two binary tr…
分类:LeetCode题目解答
2. Add Two Numbers
2. Add Two Numbers 题目 You are given two non-empty linked lists representing two non-negative integers. The dig…
1. Two Sum
1. Two Sum 题目 Given an array of integers, return indices of the two numbers such that they add up to a specifi…
3. Longest Substring Without Repeating Characters
欢迎fork and star:Nowcoder-Repository-github 3. Longest Substring Without Repeating Characters 题目 Given a string…
4. Median of Two Sorted Arrays(topK-logk)
4. Median of Two Sorted Arrays 题目 There are two sorted arrays nums1 and nums2 of size m and n respectively. Fi…
6. ZigZag Conversion
6. ZigZag Conversion 题目 The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows l…
5. Longest Palindromic Substring
5. Longest Palindromic Substring 题目 Given a string s, find the longest palindromic substring in s. You may ass…
9. Palindrome Number
9. Palindrome Number 题目 Determine whether an integer is a palindrome. Do this without extra space. click to sh…
10. Regular Expression Matching(hard)
10. Regular Expression Matching 题目 Implement regular expression matching with support for '.' and '*'. '.' Mat…
8. String to Integer (atoi)
8. String to Integer (atoi) 题目 Implement atoi to convert a string to an integer. Hint: Carefully consider all …
11. Container With Most Water
欢迎fork and star:Nowcoder-Repository-github 11. Container With Most Water 题目 Given n non-negative integers a1, …
12. Integer to Roman
12. Integer to Roman 题目 Given an integer, convert it to a roman numeral. Input is guaranteed to be within the …