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
- MySQL
- 웹어플리케이션 서버
- java 기술면접
- 백준 파이썬
- 백준 16236
- Kotlin
- JVM
- springboot
- 파이썬
- JPA
- 백준 17626
- spring security
- java
- 백준
- sql 기술면접
- 백준 19238
- 백준 16719
- 백준 15685
- 백준 17779
- spring oauth
- Spring Boot
- 프로그래머스
- 백준 16235
- re.split
- with recursive
- MSA
- Coroutine
- Spring
- 프로래머스
- spring cloud
Archives
- Today
- Total
목록프로그래머스 단어변환 (1)
시작이 반
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/cbP4Ll/btqZMoBnUX6/JigtZBs0J4igOQL8Lshu6K/img.png)
result = list() def solution(begin, target, words): global result answer = 0 if target not in words: return 0 elif target == begin: return 0 visited = [False] * len(words) dfs(begin, target, words, visited, answer) return min(result) def dfs(begin, target, words, visited, answer): global result if begin == target: return result.append(answer) change = list() for word in words: #바꿀수 있는 단어 찾기 coun..
알고리즘/Programmers
2021. 3. 10. 20:19