I polished up this problem and added more test cases.
2215 Solvers
1889 Solvers
394 Solvers
Who is the smartest MATLAB programmer?
565 Solvers
421 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!