일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- greedy
- Leedcode
- ArrayList vs LinkedList
- 자료구조
- Hashtable
- VCS
- hash table
- heap
- dfs
- sorting
- SinglyLinkedList
- LinkedList
- hash
- BFS
- leetcode
- DailyLeetCoding
- stack
- Medium
- String
- Easy
- Two Pointers
- Union Find
- 광연자동차운전면허학원
- Java
- 구현
- graph
- Bellman-Ford
- array
- python3
- A* Algorithm
Archives
- Today
- Total
목록Dijkstra (1)
Min IT's Devlog
[python3] 1514. Path with Maximum Probability
풀이 일자: 23.06.28 난이도: [Medium] 분류: [Shortest Path/ Bellman-Ford/ Dijkstra] 문제 내용 문제의 내용은 start부터 end까지 간다고 했을 때 가장 높은 weight를 가지고 있는 경로의 weight를 반환하는 문제이다. 문제 해결 흐름 1. 우선 하나의 노드에서 다른 노드로의 이동이기 때문에 BFS를 생각해보았다.(실패) class Solution: def maxProbability(self, n: int, edges: List[List[int]], succProb: List[float], start: int, end: int) -> float: visited = list(); path = dict(); for i in range(len(edges..
코테/LeetCode(Unsolved)
2023. 6. 28. 13:42