Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 파이썬
- 프로그래머스
- LEVEL 2
- javascript
- 깊이 우선 탐색
- 소프티어
- DP
- SQL 고득점 KIT
- join
- softeer
- Baekjoon
- dfs
- bfs
- 너비 우선 탐색
- 오블완
- select
- Lv. 2
- group by
- programmers
- 자바스크립트
- SQL
- Lv. 0
- 백준
- level 3
- Dynamic Programming
- 티스토리챌린지
- Python
- Lv. 1
- Lv. 3
- Java
Archives
- Today
- Total
목록a와 b 2 (1)
몸과 마음이 건전한 SW 개발자

문제 링크https://www.acmicpc.net/problem/12919정답 코드s = input()t = input()lenS = len(s)lenT = len(t)answer = 0def isIncluded(arr): normarlString = "".join(arr) reversString = "".join(arr[::-1]) return normarlString in t or reversString in tdef dfs(length, arr): global answer if answer: return if length == lenT: string = "".join(arr) if string == t: an..
알고리즘
2025. 2. 7. 16:36