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
- 가중치없는그래프
- 자바
- dfs
- MySQL
- Sort
- 이분탐색
- 알고리즘
- 그래프
- 집합
- domain model
- 트리
- 반효경교수님
- Bruteforce
- SQL
- lcap
- git
- 프로그래머스
- Recursion
- 멘딕스
- microflow
- 자료구조
- 재귀
- 스택
- Mendix
- 정렬
- algorithm
- 매개변수 탐색
- 백트래킹
- 해시맵
- 완전탐색
Archives
- Today
- Total
728x90
목록최단거리 (1)
mondegreen
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/dYEF4J/btsGeQ3clFr/AJdklD02tg1kKk4vuKrinK/img.png)
import java.util.*; class Solution { public static Deque dq; public static int dist[][]; public static int n, m; public static class Position{ int r; int c; public Position(int x, int y){ this.r = x; this.c = y; } } public int solution(int[][] maps) { int answer = -1; n = maps.length; m = maps[0].length; dist = new int[n][m]; dist[0][0] = 1; dq = new ArrayDeque(); dq.add(new Position(0, 0)); int..
알고리즘 풀이 및 리뷰/프로그래머스
2024. 3. 30. 11:40
728x90