ShivamSinghal1 / Competitive-Programming-Algorithms

The purpose of this repository is to get all the Algorithms required for Competitive Programming at one place. This will be very helpful. Also one can contribute to this repository and learn something from this.
https://codedigger.tech
21 stars 48 forks source link

Fibonacci square sum last digit #48

Open sriansu opened 4 years ago

sriansu commented 4 years ago

Computes the last digit of Fibonacci series square sum- F0^2 + F1^2 + · · · + Fn^2 in constant time.