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?
vectorization in N
Back to basics 23 - Triangular matrix
Number of Horns on a unicorn!
Generate a vector like 1,2,2,3,3,3,4,4,4,4
04 - Scalar Equations 2
Circle and Quadratic
Spiraling out of control....
What are the odds?
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