DEV Community

Discussion on: #12 - Fibonacci digit sequence CodeWars Kata (6 kyu)

Collapse
 
namhle profile image
Nam Hoang Le

It could work the string length is growing too much. Just keep the last two characters instead πŸ‘ŒπŸ»

Collapse
 
cesar__dlr profile image
Cesar Del rio

Yeah, maybe I could just keep the last two characters and keep concatinating them to the main string, so I don't have to continue splitting the main string in every loop.

Good contribution πŸ™Œ