+ 9

About Fibonocci Series

When I use big numbers , the output is memory limit exceeded ... Please Help how to use less memory but big numbers https://code.sololearn.com/cZmX0MaDGgi5/?ref=app

21st Jan 2018, 5:31 PM
Austin Oyugi
Austin Oyugi - avatar
3 Respostas
+ 9
It would be more helpful if you write a code.. @ Leander @1of3
22nd Jan 2018, 7:07 AM
Austin Oyugi
Austin Oyugi - avatar
+ 1
Do not store the intermediate results in an array, but just add it to the result, when it's even. @Shakir Java doesn't have primitive unsigned types. Sad, but true.
21st Jan 2018, 7:07 PM
1of3
1of3 - avatar
+ 1
@Shakir that's not possible in java ;)
21st Jan 2018, 9:46 PM
Leander
Leander - avatar