/Percolation

Percolation algorithm to check if water will percolate to the bottom given an NxN grid and list of open cells

Primary LanguageJavaGNU General Public License v3.0GPL-3.0

Percolation

Percolation algorithm to check if water will percolate to the bottom given an NxN grid and list of open cells

Compilation/Execution

  • Copy all files to one directory, including stdlib.jar and algs4.jar
  • Terminal:
    • javac -cp .:stdlib.jar:algs4.jar $(find . -name "*.java")
  • IDE:
    • Check to make sure .jar files are in required /src folder. Compile as normal.