Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 1.39 KB

readme.md

File metadata and controls

49 lines (37 loc) · 1.39 KB

Alticci Sequence

This software is a REST API to find the nth number from Alticci sequence. It is defined by:

n=0 => a(0) = 0
n=1 => a(1) = 1
n=2 => a(2) = 1
n>2 => a(n) = a(n-3) + a(n-2)

Documentation

Made with OpenApi (Swagger):

/swagger-ui/index.html

Endpoint:

GET /alticci/<INDEX_NUMBER>

Run instructions

  • With Docker
docker pull spinnerz/alticci
docker run -p <DESIRED_PORT>:8080 --name <CONTAINER_ALIAS> spinnerz/alticci
  • Without Docker
git clone https://github.com/SpinnerZ/alticci.git
cd alticci
./gradlew bootJar
cd build/libs
java -jar alticci.jar

Technologies used