6 people like it.
Like the snippet!
Normally, when we implement Fibonacci sequence, we use recursive function, but it will encounter the overflow exception with the big data. Below is the Fibonacci snippet with continuation, and in this way, it won't encounter the overflow exception.
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: |
|
Link: | http://fssnip.net/eU |
Posted: | 12 years ago |
Author: | Jeallyn Duan |
Tags: | fibonacci , continuation |