80. Remove Duplicates from Sorted Array II 题目 Follow up for "Remove Duplicates": What if duplicates are allowe…
分类:LeetCode题目解答
[LeetCode] Permutation Sequence 序列排序
The set [1,2,3,...,n] contains a total of n! unique permutations. By listing and labelin…
[LeetCode] Count of Smaller Numbers After Self 计算后面较小数字的个数
You are given an integer array nums and you have to return a new counts array. The&…
[LeetCode] Longest Word in Dictionary 字典中的最长单词
Given a list of strings words representing an English Dictionary, find the longest word in&nb…
【leetcode】94. Binary Tree Inorder Traversal 二叉树的中序遍历
1. 题目 Given a binary tree, return the inorder traversal of its nodes’ values. For example:Given binary t…
【leetcode】60. Permutation Sequence 全排列的第k位序的排列形式
1. 题目 The set [1,2,3,…,n] contains a total of n! unique permutations. By listing and labeling all of the permu…
力扣(LeetCode)155
题目地址:https://leetcode-cn.com/probl…题目描述:设计一个支持 push,pop,top 操作,并能在常数时间内检索到最小元素的栈。 push(x) — 将元素 x …
[LeetCode] Substring with Concatenation of All Words 串联所有单词的子串
You are given a string, s, and a list of words, words, that are all of the same length. Find all starti…
[LeetCode] Binary Tree Zigzag Level Order Traversal 二叉树的之字形层序遍历,[LeetCode] Binary Tree Level Order Traversal 二叉树层序遍历
Given a binary tree, return the zigzag level order traversal of its nodes’ values. (ie,…
[LeetCode] Matchsticks to Square 火柴棍组成正方形
Remember the story of Little Match Girl? By now, you know exactly what matchsticks the little match gir…
[LeetCode] Minimum Time Difference 最短时间差
Given a list of 24-hour clock time points in “Hour:Minutes” format, find the minimum m…
[LeetCode] Toeplitz Matrix 托普利兹矩阵
A matrix is Toeplitz if every diagonal from top-left to bottom-right has the same element. No…