pratik-choudhari / AlgoCode

Welcome everyone!🌟 Here you can solve problems, build scrappers and much moreπŸ’»
https://github.com/pratik-choudhari/AlgoCode
MIT License
131 stars 166 forks source link

Last digit of Squared Fibonacci sequence #410

Closed atharvakarnik closed 3 years ago

atharvakarnik commented 3 years ago

Feature βœ…

Description

Write a program to compute the sum of the squared Fibonacci sequence.
The program takes input of natural number 'n', and must compute F02+F12+F22+...+Fn2 The output should be the last digit of this summation.

NOTE:

Be careful while implementing the program as naive approaches (like recursion) have a time complexity of O(2n)

Example

Input: 7 Output: 3

Explanation

0 + 1 + 1 + 4 + 9 + 25 + 64 + 169 = 273 Thus, last digit is 3

Checklist:

Contributors are supposed to mention their coding language while asking for assignment As python implementation of this algorithm has already been done in request #401, feel free to go for other programming languages

All the best coders!πŸ€“

PriyanshuGangwar commented 3 years ago

Hi, Can you assign this in C++ ?

pratik-choudhari commented 3 years ago

@PriyanshuGangwar You are already assigned to 2 issues, that's the limit for this repository.

cmeyrueix4 commented 3 years ago

Hey, can you assign this to me in Java?

salma2vec commented 3 years ago

Hey, Can you assign this to me in C# ?

codeit-dotcom commented 3 years ago

Can you assign this to me? i will do in C++

anu-ragi commented 3 years ago

Hi, I would like to do this in Javascript. Pls assign.

anu-ragi commented 3 years ago

Is this closed for assignees also?

pratik-choudhari commented 3 years ago

@anu-ragi Nope.