Write a code which returns the Fibonacci Sequence such that the largest value in the sequence is less than the input integer N. For example,
1 1 2 3 5 8 13 21
1 1 2 3 5 8 13 21 34
Put the 34 and 35 cases into the test suite, as some of the current solutions still give 34 as part of the output for fib_seq(34)
Those test cases have been added.
While evaluating the solution, the server encountered an error caused by temporary unavailability of MATLAB Service. Wait a few minutes for the MATLAB Service to return, and then rescore.
Should I wait for how long?
Determine whether a vector is monotonically increasing
DNA N-Gram Distribution
Remove the air bubbles
Duplicate a character
Find the repeating decimal pattern!
What are the odds?
Spiraling out of control....
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office