You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tech-interview-handbook/algorithms/graph.md

744 B

id title
graph Graph
  • Given a list of sorted words from an alien dictionary, find the order of the alphabet.
    • Alien Dictionary Topological Sort question.
  • Find if a given string matches any path in a labeled graph. A path may contain cycles.
  • Given a bipartite graph, separate the vertices into two sets.
  • You are a thief trying to sneak across a rectangular 100 x 100m field. There are alarms placed on the fields and they each have a circular sensing radius which will trigger if anyone steps into it. Each alarm has its own radius. Determine if you can get from one end of the field to the other end.
  • Given a graph and two nodes, determine if there exists a path between them.
  • Determine if a cycle exists in the graph.