Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
Tags
- Docker
- dacon
- 더현대서울 맛집
- Git
- Baekjoon
- 편스토랑 우승상품
- leetcode
- SW Expert Academy
- 프로그래머스
- hackerrank
- 프로그래머스 파이썬
- 파이썬
- PYTHON
- 백준
- ChatGPT
- 편스토랑
- 코로나19
- 금융문자분석경진대회
- ubuntu
- 자연어처리
- AI 경진대회
- Kaggle
- gs25
- 캐치카페
- Real or Not? NLP with Disaster Tweets
- github
- programmers
- 맥북
- 우분투
- 데이콘
Archives
- Today
- Total
목록
반응형
permutations (1)
반응형
솜씨좋은장씨
[leetCode] 46. Permutations (Python)
Given a collection of distinct integers, return all possible permutations. Example: Input: [1,2,3] Output: [ [1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2], [3,2,1] ] Solution from itertools import permutations class Solution: def permute(self, nums: List[int]) -> List[List[int]]: permu = list(permutations(nums, len(nums))) return permu SOMJANG/CODINGTEST_PRACTICE 1일 1문제 since 2020.02.07. Contribut..
Programming/코딩 1일 1문제
2020. 6. 4. 22:03
반응형