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 | 29 |
30 |
Tags
- level1
- 운영체제
- 힙
- python
- 다익스트라
- 파이썬
- 수학
- 구현
- level3
- MYSQL
- 딕셔너리
- 가상메모리
- DP
- 재귀
- 가상메모리 관리
- programmers
- 그리디
- BFS
- 백준
- dict
- BOJ
- N과M
- 다이나믹 프로그래밍
- 프로그래머스
- level0
- 브루트포스
- level2
- dfs
- 스택
- 코딩테스트
Archives
- Today
- Total
목록방문 길이 (1)
동캄의 코딩도장
프로그래머스 level2 [방문 길이] 파이썬
https://programmers.co.kr/learn/courses/30/lessons/49994 코딩테스트 연습 - 방문 길이 programmers.co.kr #프로그래머스 방문 길이 def solution(dirs): answer = 0 link=[[[[0]*11 for _ in range(11)] for _ in range(11)] for _ in range(11)] x=5 y=5 for dir in dirs: if dir=='U' and y0: if (link[x][y][x][y-1]!=1) and (link[x][y-1][x][y]!=1): answer+=1 link[x][y][x][y-1]=1 link[x][y-1][x][y]=1 y-=1 elif dir=='L' and x>0: if (l..
코테/프로그래머스
2021. 12. 9. 21:47