Problem 198. Are you in or are you out?
Solution Stats
Problem Comments
-
3 Comments
The test suit only tests points that are inside or outside but not on the boundary of the polygon
Cyclist, this was a pretty tough problem to solve without resorting to Googling a solution or something similar. I ended up with a function that will work for any n-sided polygon. Thanks for the weekend challenge.
Maybe, thinking this problem in topology aspect is useful.
Problem Recent Solvers220
Suggested Problems
-
Number of 1s in the Binary Representation of a Number
400 Solvers
-
Compute a dot product of two vectors x and y
902 Solvers
-
Find a subset that divides the vector into equal halves
371 Solvers
-
How many trades represent all the profit?
574 Solvers
-
Multiples of a Number in a Given Range
491 Solvers
More from this Author23
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!