Challenge: Generate the Nth Fibonacci Word
Explore how to create a function in C that calculates the nth Fibonacci word and stores it in a given string. Understand string manipulation and recursion as you handle edge cases like negative indices and concatenate Fibonacci words for valid inputs.
We'll cover the following...
We'll cover the following...
Problem statement
In this challenge, you have to implement the fibWords function.
int fibWords(char *strl, int n);
You are given the empty string, strl, and the integer, ...