Skip to content

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Water Algorithm

This is an implementation of the water fill problem.

Example:

Given a grid, with columns along X, how many cells of "water" can be filled, considering runoff:

Example Grid

          _
         | |
 _       | |         _
  |      | |        | |
  | _  _ | | _    _ | |   _
  |  |  |  |  |  | |  |  | |
 _| _| _| _| _| _|_| _| _|_| _

Result: 14

Note: the bottom is solid, but the left edge and right edge are open (there are no walls).

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages