"...return a positive integer, y, which is the xth term ..." in de description.
I have a single line of code in my solution -- how is yours so small!?!
Find the longest sequence of 1's in a binary sequence.
3417 Solvers
2415 Solvers
Generate a vector like 1,2,2,3,3,3,4,4,4,4
3895 Solvers
234 Solvers
447 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!