最新 最热

itertools

作用:把迭代器中相邻的元素按照key函数分组,当key=None时,把相邻的重复元素进行分组。

2023-08-10
2

Python小姿势 - 5 tips to get the most out of list comprehensions in Python

5 tips to get the most out of list comprehensions in Python

2023-05-03
2

Leetcode 题目解析之 Combinations

Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.

2022-03-07
2

Leetcode 题目解析之 Restore IP Addresses

Given a string containing only digits, restore it by returning all possible valid IP address combinations.

2022-02-13
2

Leetcode 题目解析之 Generate Parentheses

Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.

2022-02-13
2

LeetCode 0216 - Combination Sum III

Find all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each combination should be a unique s...

2021-08-11
2

LeetCode 0077 - Combinations

Given two integers n and k, return all possible combinations of k numbers out of 1 … n.

2021-08-11
2

LeetCode 0039 - Combination Sum

Given a set of candidate numbers (C) (without duplicates) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.

2021-08-11
2

LeetCode 0040 - Combination Sum II

Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.

2021-08-11
2

LeetCode 0022 - Generate Parentheses

Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.

2021-08-11
2