medium10 pts · first answer countsgraphsshortest-pathdijkstra
Shortest distance in a small road graph
Roads are undirected with these travel times in minutes. What is the shortest time from A to D?
A-B 4 A-C 1 C-B 2 B-D 1 C-D 5
Discussion 0
Join free to post in the discussion.
Related questions
- Edges in a tree with n nodesBackend Developer
- Most nodes in a binary tree of height 3Backend Developer
- What inorder traversal of a BST givesBackend Developer
- Preorder output of a small treeBackend Developer
- Traversal for freeing a whole treeBackend Developer
- Data structure for level-order traversalBackend Developer
- BST search time, typical and worstBackend Developer
- Leaves in a full binary treeBackend Developer