Programming Competition and Programming Interview questions. And maybe some web stuff, too.
Book: Cracking the Coding Interview Question: 4.2 (page 86)
Given a directed graph, design an algorithm to find out whether there is a route between two nodes.
Solution: Complexity - O(V+E)
No comments:
Post a Comment