Cody
I added test cases to rule out equally spaced answers.
Added random numbers to equally spaced answers. :-P
Solution 580921
Since Solution 580724 got deleted (???), here is it again.
That's weird. I don't know why it would have disappeared.
That happens sometimes when, while rescoring, cody server returns an error.
Solution 580724
Kudos for passing the test suite. This is interesting, because it is a different distribution than the one envisioned at test suite creation time.
Since my original one had equally spaced answers, I thought I'd just stick with that theme.
Solve the Sudoku Row
895 Solvers
Is my wife right?
15305 Solvers
Get the length of a given vector
3575 Solvers
Generate a string like abbcccddddeeeee
234 Solvers
I Plead the Fifth
344 Solvers
Restricted Addition v2
12 Solvers
Find a Hamiltonian Cycle in a Graph
2 Solvers
Restricted Subtraction v1
5 Solvers
Test Driven Solution - Probability Problem 2
11 Solvers
Restricted Multiplication v1
6 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
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