일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- greedy
- Bellman-Ford
- sorting
- SinglyLinkedList
- heap
- LinkedList
- array
- BFS
- 광연자동차운전면허학원
- Leedcode
- hash
- ArrayList vs LinkedList
- graph
- Hashtable
- python3
- Easy
- VCS
- Union Find
- Medium
- leetcode
- stack
- 구현
- dfs
- Two Pointers
- A* Algorithm
- Java
- hash table
- DailyLeetCoding
- 자료구조
- String
Archives
- Today
- Total
목록Bellman-Ford (1)
Min IT's Devlog

풀이 일자: 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