7 kyu

Check if a number is a part of an arbitrary fibonacci sequence

616 of 890otamm

Description:

You will be given a function, isFibo, which will take three arguments: a, b and f.

a is the first term of a Fibonacci sequence, b is the second term of this sequence ( it will always be bigger than or equal to a and they'll be both always positive, so don't worry about pesky input checking ) and f is a number which you'll need to check whether or not is a part of this Fibonacci sequence.

Good luck, muh fellow coding warrior.

Algorithms
Arrays

More By Author:

Check out these other kata created by otamm

Stats:

CreatedMar 6, 2016
PublishedMar 6, 2016
Warriors Trained1638
Total Skips27
Total Code Submissions2079
Total Times Completed890
JavaScript Completions616
Haskell Completions44
C Completions53
Python Completions219
Total Stars11
% of votes with a positive feedback rating88% of 172
Total "Very Satisfied" Votes138
Total "Somewhat Satisfied" Votes27
Total "Not Satisfied" Votes7
Ad
Contributors
  • otamm Avatar
  • smile67 Avatar
  • JohanWiltink Avatar
  • B1ts Avatar
  • Madjosz Avatar
  • Souzooka Avatar
  • rowcased Avatar
Ad