The problem says the input is a positive integer but the first test inputs 0. In my code that caused r = 0/0 error. Please change the wording to "input is non-negative".
Find the two most distant points
1628 Solvers
Flip the main diagonal of a matrix
506 Solvers
Flag largest magnitude swings as they occur
582 Solvers
Cell Counting: How Many Draws?
581 Solvers
664 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!