It is a good problem but needs more test cases. People may derive the wrong formula by looking just at the test suite.
228 Solvers
407 Solvers
286 Solvers
Finding an element in a vector
136 Solvers
150 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!