Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 524 Bytes

File metadata and controls

13 lines (10 loc) · 524 Bytes

DecodeFibonacci

Description

This repository contains the contribution to a challenge summing up even fibonaccis below a given number.

Usage

Run the python script and read the result from the cli - adapt the variable numbers (default is 4.000.000), if desired.

Featues

Notable features of this solution:

  • Implementation with very few lines of code
  • No loops, if-clauses, etc.; just using the very fast numpy package
  • Makes use of the Binet's formula and the knowledge that just every third number is even