feat: Add the section of permutations problem. (#476)

* Add the section of permutations problem.

* Update permutations_problem.md
This commit is contained in:
Yudong Jin
2023-04-24 03:33:30 +08:00
committed by GitHub
parent 95ed93dc4b
commit c6eecfd0dc
14 changed files with 462 additions and 0 deletions

View File

@ -54,6 +54,9 @@ def traverse(nums: list[int]) -> None:
# 直接遍历数组
for num in nums:
count += 1
# 同时遍历数据索引和元素
for i, num in enumerate(nums):
count += 1
def find(nums: list[int], target: int) -> int: