题目地址:https://leetcode-cn.com/probl…题目描述:给定一个没有重复数字的序列,返回其所有可能的全排列。 示例: 输入: [1,2,3]输出:[ [1,2,3], [1,3,2],…
标签:LeetCode题目解答
[LeetCode] Combination Sum 组合之和,Path Sum II,Subsets II,Permutations,Permutations II,Combinations
Given a set of candidate numbers (candidates) (without duplicates) and a target num…
[LeetCode] Intersection of Two Linked Lists 求两个链表的交点
Write a program to find the node at which the intersection of two singly linked lists begins. Fo…
[LeetCode] Find All Anagrams in a String 找出字符串中所有的变位词
Given a string s and a non-empty string p, find all the start indices of …
[LeetCode] Smallest Good Base 最小的好基数
For an integer n, we call k>=2 a good base of n, if all digits of n base k are 1. Now given a string…
LeetCode | Longest Substring Without Repeating Characters
题目: Given a string, find the length of the longest substring without repeating characters. For example, the lo…
LeetCode | Pascal's Triangle II
题目: Given an index k, return the kth row of the Pascal’s triangle. For example, given&nbs…
LeetCode | Remove Duplicates from Sorted List II
题目: Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct …
[Leetcode] Regular Expression Matching 正则表达式匹配
Regular Expression Matching Implement regular expression matching with support for '.' and'*'. '.' Matches any…
[LeetCode] Serialize and Deserialize Binary Tree 二叉树的序列化和去序列化
Serialization is the process of converting a data structure or object into a sequence of bits so that i…
[LeetCode] Max Chunks To Make Sorted 可排序的最大块数
Given an array arr that is a permutation of [0, 1, ..., arr.length - 1], we split the ar…
83. Remove Duplicates from Sorted List
Given a sorted linked list, delete all duplicates such that each element appear only once. Example 1: Input: 1…