Skip to content

Files

Latest commit

0ed9c9c · Oct 11, 2022

History

History

Electric Box

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Oct 11, 2022
Oct 11, 2022
Oct 11, 2022
Oct 11, 2022
Oct 11, 2022

Electric Box

Solution

  1. Build a graph with M + 2 nodes: one for each obstacle and one for each of the top and bottom walls.
  2. Add an edge between obstacles if they overlap.
  3. Check if the top wall is connected to the bottom wall using depth-first search (connected means no path)

First Solve: CTF_505