command
Version:
v0.0.0-...-fe72480
Opens a new window with list of versions in this module.
Published: Jan 16, 2018
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
rainwater
The problem is basically calculate the rain water accumulater in the valleys give that a topography is represented in an array. 0 means sea level.
For example:
[ 3, 2, 2, 5, 2, 1, 7 ]
In this case:
+0 +1 +1 +0 +3 +4 +0 = 9
[ 3, 2, 2, 5, 2, 1, 7 ]
Solutions are in Go:
- rainwater.go - Solution in go. Run with: go run rainwater.go
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.