Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 504 Bytes

README.md

File metadata and controls

24 lines (14 loc) · 504 Bytes

Remain drop volume on rainy hills

Calculating number of drops, which can remain after a rain on specified relief

Input: array of heights (integer) Output: volume of remain drops

e.g. Input: 3 2 4 1 2 Output: 2

Build project

To build project just start ./gradlew build

Start project with Docker

Go to build/docker folder and run script build-and-start.sh to run project on your docker

Usage

Open http://localhost:8080/remain-drop-volume/ and put array of heights in the textbox