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