...
/Solution: Last Digit of Fibonacci Number
Solution: Last Digit of Fibonacci Number
Solution for the Last Digit of the Fibonacci Number Problem.
We'll cover the following...
Naive solution
To solve this problem, let’s compute and simply output its last digit:
:
if :
return
allocate an array
...