![](https://img-blog.csdnimg.cn/20190825152211603.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
LeetCode Hot100 LikedQuestions
LeetCode上最受欢迎的100道题
littlehaes
这个作者很懒,什么都没留下…
展开
-
LeetCode Top 100 Liked Questions 1. Two Sum(Java版; Easy)
welcome to my blogLeetCode Top 100 Liked Questions 1. Two Sum(Java版; Easy)题目描述Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assu...原创 2019-08-25 12:54:30 · 115 阅读 · 0 评论 -
LeetCode Top 100 Liked Questions 2.Add Two Numbers (Java版; Medium)
welcome to my blogLeetCode Top 100 Liked Questions 2.Add Two Numbers (Java版; Medium)题目描述You are given two non-empty linked lists representing two non-negative integers. The digits are stored in rev...原创 2019-08-28 20:38:19 · 110 阅读 · 0 评论 -
LeetCode Top 100 Liked Questions 3. Longest Substring Without Repeating Characters(Java版; Hard)
welcome to my blogLeetCode Top 100 Liked Questions 3. Longest Substring Without Repeating Characters(Java版; Hard)题目描述Given a string, find the length of the longest substring without repeating chara...原创 2019-08-31 22:42:45 · 119 阅读 · 0 评论 -
LeetCode Top 100 Liked Questions 4.Median of Two Sorted Arrays(Java版; Hard)
welcome to my blogLeetCode Top 100 Liked Questions 4.Median of Two Sorted Arrays(Java版; Hard)题目描述There are two sorted arrays nums1 and nums2 of size m and n respectively.Find the median of the tw...原创 2019-08-31 23:40:09 · 110 阅读 · 0 评论 -
LeetCode Top 100 Liked Questions 5.Longest Palindromic Substring (Java版; Medium)
welcome to my blogLeetCode Top 100 Liked Questions 4.Longest Palindromic Substring (Java版; Medium)题目描述Given a string s, find the longest palindromic substring in s. You may assume that the maximum ...原创 2019-09-01 19:24:56 · 160 阅读 · 0 评论 -
LeetCode Top 100 Liked Questions 10.Regular Expression Matching (Java版; Hard)
welcome to my blogLeetCode Top 100 Liked Questions 10.正则表达式匹配(Java版;hard)题目描述Given an input string (s) and a pattern (p), implement regular expression matching with support for '.' and '*'.'.' Ma...原创 2019-08-25 12:35:27 · 100 阅读 · 0 评论 -
LeetCode Top 100 Liked Questions 11. Container With Most Water (Java版; Medium)
welcome to my blogLeetCode Top 100 Liked Questions 11. Container With Most Water (Java版; Medium)题目描述Given n non-negative integers a1, a2, ..., an , where each represents a point at coordinate (i, a...原创 2019-09-01 19:56:56 · 93 阅读 · 0 评论 -
LeetCode Top 100 Liked Questions 15.3Sum (Java版; Medium)
welcome to my blogLeetCode Top 100 Liked Questions 15.3Sum (Java版; Medium)题目描述Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplet...原创 2019-09-02 08:37:09 · 108 阅读 · 0 评论 -
LeetCode Top 100 Liked Questions 17. Letter Combinations of a Phone Number (Java版; Medium)
welcome to my blogLeetCode Top 100 Liked Questions 17. Letter Combinations of a Phone Number (Java版; Medium)题目描述Given a string containing digits from 2-9 inclusive, return all possible letter combi...原创 2019-09-02 10:33:03 · 146 阅读 · 0 评论 -
LeetCode Top 100 Liked Questions 19. Remove Nth Node From End of List (Java版; Medium)
welcome to my blogLeetCode Top 100 Liked Questions 19. Remove Nth Node From End of List (Java版; Medium)题目描述Given a linked list, remove the n-th node from the end of list and return its head.Examp...原创 2019-09-03 07:45:38 · 116 阅读 · 0 评论 -
LeetCode Top 100 Liked Questions 20. Valid Parentheses (Java版; Easy)
welcome to my blogLeetCode Top 100 Liked Questions 20. Valid Parentheses (Java版; Easy)题目描述Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input strin...原创 2019-09-03 08:09:19 · 101 阅读 · 0 评论 -
LeetCode Top 100 Liked Questions 21. Merge Two Sorted Lists (Java版; Easy)
welcome to my blogLeetCode Top 100 Liked Questions 21. Merge Two Sorted Lists (Java版; Easy)题目描述Merge two sorted linked lists and return it as a new list. The new list should be made by splicing tog...原创 2019-09-03 08:30:11 · 86 阅读 · 0 评论 -
LeetCode Top 100 Liked Questions 22. Generate Parentheses (Java版; Medium)
welcome to my blogLeetCode Top 100 Liked Questions 22. Generate Parentheses (Java版; Medium)题目描述Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses...原创 2019-09-04 09:22:09 · 129 阅读 · 0 评论 -
LeetCode Top 100 Liked Questions 23. Merge k Sorted Lists (Java版; Hard)
welcome to my blogLeetCode Top 100 Liked Questions 23. Merge k Sorted Lists (Java版; Hard)题目描述Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.Exam...原创 2019-09-04 10:41:46 · 97 阅读 · 0 评论 -
LeetCode Top 100 Liked Questions 31. Next Permutation(Java版; Medium)
welcome to my blogLeetCode Top 100 Liked Questions 31. Next Permutation(Java版; Medium)题目描述Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of...原创 2019-09-05 10:37:30 · 177 阅读 · 0 评论 -
LeetCode Top 100 Liked Questions 32.Longest Valid Parentheses(Java版; Hard)
welcome to my blogLeetCode Top 100 Liked Questions 32.Longest Valid Parentheses(Java版; Hard)题目描述Given a string containing just the characters '(' and ')', find the length of the longest valid (well...原创 2019-09-05 14:38:43 · 104 阅读 · 0 评论 -
LeetCode Top 100 Liked Questions 33. Search in Rotated Sorted Array(Java版; Medium)
welcome to my blogLeetCode Top 100 Liked Questions 33. Search in Rotated Sorted Array(Java版; Medium)题目描述概括一下就是在旋转数组中寻找target, 找到的话返回其索引, 没找到的话返回-1Suppose an array sorted in ascending order is rota...原创 2019-09-06 10:15:10 · 97 阅读 · 0 评论 -
LeetCode Top 100 Liked Questions 34. Find First and Last Position of Element in Sorted Array(Medium)
welcome to my blogLeetCode Top 100 Liked Questions 34. Find First and Last Position of Element in Sorted Array(Java版; Medium)题目描述Given an array of integers nums sorted in ascending order, find the ...原创 2019-09-06 11:00:58 · 99 阅读 · 0 评论 -
LeetCode Top 100 Liked Questions 39. Combination Sum(Java版; Medium)
welcome to my blogLeetCode Top 100 Liked Questions 39. Combination Sum(Java版; Medium)题目描述Given a set of candidate numbers (candidates) (without duplicates) and a target number (target), find all un...原创 2019-09-07 11:09:04 · 122 阅读 · 0 评论 -
LeetCode Top 100 Liked Questions 42. Trapping Rain Water (Java版; Hard)
welcome to my blogLeetCode Top 100 Liked Questions 42. Trapping Rain Water (Java版; Hard)题目描述Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how...原创 2019-09-07 17:20:12 · 116 阅读 · 0 评论 -
LeetCode Top 100 Liked Questions 46. Permutations (Java版; Medium)
welcome to my blogLeetCode Top 100 Liked Questions 46. Permutations (Java版; Medium)题目描述Given a collection of distinct integers, return all possible permutations.Example:Input: [1,2,3]Output:[...原创 2019-09-08 10:40:39 · 108 阅读 · 0 评论 -
LeetCode Top 100 Liked Questions 48. Rotate Image (Java版; Medium)
welcome to my blogLeetCode Top 100 Liked Questions 48. Rotate Image (Java版; Medium)题目描述You are given an n x n 2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Note:Y...原创 2019-09-08 13:52:41 · 117 阅读 · 0 评论 -
LeetCode Top 100 Liked Questions 49. Group Anagrams (Java版; Medium)
welcome to my blogLeetCode Top 100 Liked Questions 49. Group Anagrams (Java版; Medium)题目描述Given an array of strings, group anagrams together.Example:Input: ["eat", "tea", "tan", "ate", "nat", "b...原创 2019-09-09 09:50:17 · 112 阅读 · 0 评论 -
LeetCode Top 100 Liked Questions 53. Maximum Subarray (Java版; Easy)
welcome to my blogLeetCode Top 100 Liked Questions 53. Maximum Subarray (Java版; Easy)题目描述Given an integer array nums, find the contiguous subarray (containing at least one number) which has the lar...原创 2019-09-09 10:31:47 · 102 阅读 · 0 评论 -
LeetCode Top 100 Liked Questions 55. Jump Game (Java版; Medium)
welcome to my blogLeetCode Top 100 Liked Questions 55. Jump Game (Java版; Medium)题目描述Given an array of non-negative integers, you are initially positioned at the first index of the array.Each elem...原创 2019-09-10 08:51:45 · 100 阅读 · 0 评论 -
LeetCode Top 100 Liked Questions 56. Merge Intervals (Java版; Medium)
welcome to my blogLeetCode Top 100 Liked Questions 56. Merge Intervals (Java版; Medium)题目描述Given a collection of intervals, merge all overlapping intervals.Example 1:Input: [[1,3],[2,6],[8,10],[...原创 2019-09-10 09:48:13 · 128 阅读 · 0 评论 -
LeetCode Top 100 Liked Questions 62. Unique Paths (Java版; Medium)
welcome to my blogLeetCode Top 100 Liked Questions 62. Unique Paths (Java版; Medium)题目描述A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).The robot ca...原创 2019-09-11 10:20:17 · 97 阅读 · 0 评论 -
LeetCode Top 100 Liked Questions 64. Minimum Path Sum (Java版; Medium)
welcome to my blogLeetCode Top 100 Liked Questions 64. Minimum Path Sum (Java版; Medium)题目描述第一次做, 进一步降低空间复杂度, 直接在原数组上进行修改, 不用额外申请空间了; 不论哪种动态规划的写法, 都有同一个特点: 每个点(i,j)都访问两次, 第一次访问是计算(0,0)到(i,j)的距离; 第二次...原创 2019-09-11 14:44:55 · 143 阅读 · 0 评论 -
LeetCode Top 100 Liked Questions 70. Climbing Stairs (Java版; Easy)
welcome to my blogLeetCode Top 100 Liked Questions 70. Climbing Stairs (Java版; Easy)题目描述You are climbing a stair case. It takes n steps to reach to the top.Each time you can either climb 1 or 2 s...原创 2019-09-12 14:55:31 · 86 阅读 · 0 评论 -
LeetCode Top 100 Liked Questions 72. Edit Distance (Java版; Hard)
welcome to my blogLeetCode Top 100 Liked Questions 72. Edit Distance (Java版; Hard)题目描述Given two words word1 and word2, find the minimum number of operations required to convert word1 to word2.You...原创 2019-09-12 23:54:27 · 144 阅读 · 0 评论 -
LeetCode Top 100 Liked Questions 75. Sort Colors (Java版; Medium)
welcome to my blogLeetCode Top 100 Liked Questions 75. Sort Colors (Java版; Medium)题目描述Given an array with n objects colored red, white or blue, sort them in-place so that objects of the same color ...原创 2019-09-13 10:20:46 · 78 阅读 · 0 评论 -
LeetCode Top 100 Liked Questions 76. Minimum Window Substring (Java版; Hard)
welcome to my blogLeetCode Top 100 Liked Questions 76. Minimum Window Substring (Java版; Hard)题目描述Given a string S and a string T, find the minimum window in S which will contain all the characters ...原创 2019-09-13 21:37:45 · 111 阅读 · 0 评论 -
LeetCode Top 100 Liked Questions 78. Subsets (Java版; Medium)
welcome to my blogLeetCode Top 100 Liked Questions 78. Subsets (Java版; Medium)题目描述Given a set of distinct integers, nums, return all possible subsets (the power set).Note: The solution set must n...原创 2019-09-14 10:48:10 · 91 阅读 · 0 评论 -
LeetCode Top 100 Liked Questions 79. Word Search (Java版; Medium)
welcome to my blogLeetCode Top 100 Liked Questions 79. Word Search (Java版; Medium)题目描述Given a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of ...原创 2019-09-14 11:17:51 · 84 阅读 · 0 评论 -
LeetCode Top 100 Liked Questions 84. Largest Rectangle in Histogram (Java版; Hard)
welcome to my blogLeetCode Top 100 Liked Questions 84. Largest Rectangle in Histogram (Java版; Hard)题目描述Given n non-negative integers representing the histogram's bar height where the width of each ...原创 2019-09-15 10:50:23 · 106 阅读 · 0 评论 -
LeetCode Top 100 Liked Questions 85. Maximal Rectangle (Java版; Hard)
welcome to my blogLeetCode Top 100 Liked Questions 85. Maximal Rectangle (Java版; Hard)题目描述Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing only 1's and return...原创 2019-09-15 15:38:17 · 172 阅读 · 0 评论 -
LeetCode Top 100 Liked Questions 94. Binary Tree Inorder Traversal (Java版; Medium)
welcome to my blogLeetCode Top 100 Liked Questions 94. Binary Tree Inorder Traversal (Java版; Medium)题目描述Given a binary tree, return the inorder traversal of its nodes' values.Example:Input: [1,...原创 2019-09-17 09:57:20 · 86 阅读 · 0 评论 -
LeetCode Top 100 Liked Questions 96. Unique Binary Search Trees (Java版; Medium)
welcome to my blogLeetCode Top 100 Liked Questions 96. Unique Binary Search Trees (Java版; Medium)题目描述Given n, how many structurally unique BST's (binary search trees) that store values 1 ...n?Exa...原创 2019-09-17 14:30:41 · 128 阅读 · 0 评论 -
LeetCode Top 100 Liked Questions 98. Validate Binary Search Tree (Java版; Medium)
welcome to my blogLeetCode Top 100 Liked Questions 98. Validate Binary Search Tree (Java版; Medium)题目描述Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defi...原创 2019-09-17 15:28:01 · 199 阅读 · 0 评论 -
LeetCode Top 100 Liked Questions 101. Symmetric Tree (Java版; Easy)
welcome to my blogLeetCode Top 100 Liked Questions 101. Symmetric Tree (Java版; Easy)题目描述Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, ...原创 2019-09-17 15:55:23 · 98 阅读 · 0 评论