It's not clear to me what select_state is supposed to return. I would have thought it was one of the state (i.e. one of 1, 2, 3, ...) but it's not what the test suite tests for.
Returning the passed in probability with a very small deviation is enough to pass the test suit. This doesn't seem right.
Guillaume, i changed the problem output to states rather than the probability values. This way looks better i presume. Thanks for the comment. Cheers
220 Solvers
Back to basics 19 - character types
226 Solvers
187 Solvers
Multiples of a Number in a Given Range
222 Solvers
128 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!