Skip to content

Latest commit

 

History

History

simple-fibonacci-strings

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Given that

f0 = '0'
f1 = '01'
f2 = '010' = f1 + f0
f3 = '01001' = f2 + f1

You will be given a number and your task is to return the nth fibonacci string. For example:

solve(2) = '010'
solve(3) = '01001'

More examples in test cases.