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
- Sherlock and the Valid String
- ACM-ICPC
- 문자열
- codesignal
- Alternating Characters
- Making Anagrams
- 최단 경로 알고리즘
- dynamic programming
- JUMPGAME
- Dijkstra
- 다익스트라
- hacker rank
- algorithm
- Dynamic Programing
- algospot
- Math.ceil
- 01 타일
- java
- centuryFromYear
- 명령 프롬프트
- 동적 계획법
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