The correct answer is not really defined for x = 1, that is a one-sided polygon.
The test cases are insufficient.
242 Solvers
Find out missing number from a vector of 9 elements
245 Solvers
Create matrix of replicated elements
321 Solvers
424 Solvers
Flip the vector from right to left
2674 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!