7 kyu

Simple fibonacci strings

663 of 2,193KenKamau

Description:

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. Good luck!

If you like sequence Katas, you will enjoy this Kata: Simple Prime Streaming

Algorithms

Stats:

CreatedMar 10, 2018
PublishedMar 10, 2018
Warriors Trained3674
Total Skips25
Total Code Submissions4645
Total Times Completed2193
JavaScript Completions829
Python Completions663
Ruby Completions92
Haskell Completions93
C++ Completions172
C# Completions116
Java Completions261
Go Completions93
Total Stars49
% of votes with a positive feedback rating91% of 554
Total "Very Satisfied" Votes466
Total "Somewhat Satisfied" Votes76
Total "Not Satisfied" Votes12
Total Rank Assessments5
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • KenKamau Avatar
  • Voile Avatar
  • dcieslak Avatar
  • hobovsky Avatar
  • saudiGuy Avatar
Ad