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 | 31 |
Tags
- ACM-ICPC
- Sherlock and the Valid String
- Making Anagrams
- JUMPGAME
- dynamic programming
- java
- 다익스트라
- 명령 프롬프트
- hacker rank
- centuryFromYear
- Dijkstra
- codesignal
- Alternating Characters
- Math.ceil
- algospot
- Dynamic Programing
- 최단 경로 알고리즘
- 동적 계획법
- 01 타일
- algorithm
- 문자열
Archives
- Today
- Total
목록Algorithm/Theory (1)
Florescence
다익스트라 알고리즘
import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.PriorityQueue; public class Main { static class Graph { Map nodes = new HashMap(); public void addNode(String vertex, List adjacentNodes) { nodes.put(vertex, adjacentNodes); } public List getAdjacentVertex(String vertex) { return nodes.get(vertex); } } static class Node implements ..
Algorithm/Theory
2019. 4. 17. 00:25