This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
We're actively looking for ideas on how to improve Weekly Challenges and would love to hear what you think!
Submit FeedbackFun challenge! Last filter needed to match solution, but shouldn't tiny triangles still count? Investigation of original data indicates these are non-linear points (Thank you Mr. Coss - High School Geometry Teacher)
I'm delighted that I could contribute to the awesome-ness that is the Weekly Challenges! I originally designed this with several sub-challenges if you want more:
- Draw a triangle using Spatial tools
- Draw a triangle without using Spatial tools
- Draw multiple triangles using only a single tool
- Draw multiple triangles using an iterative macro
- Draw all 516 unique triangles
A note on the "valid" solutions: due to how the points were drawn, it is possible to produce some very thin triangles that would be collinear if a grid was drawn on a Cartesian plane. Rather than adjusting the points, I was curious to see different approaches to handing these scenarios.
Challenge #161, done.
I also removed the tiny triangles to get to the final answer - (unsure why they don't count)
Cheers,
Fun challenge! I had to look up (as I couldn't remember back to high school trigonometry how to determine if 3 points were collinear.
Interesting. Final filter was a challenge
OK so I got a bit hung up on the definition of "Non-Collinear", so my workflow actually has 2 solutions - one that gets 516 unique triangles (not the most efficient solution compared to others, but logically it got me there, and I feel like my high school math teacher wouldn't have been mortified, so I'm okay with it)... and then an alternate solution that I feel better matches the intention that all triangles be "non-collinear", which I defined to mean that there could be no point in the triangle that was at the same latitude or longitude plane as any other point in that triangle. Results in far fewer triangles (essentially, any triangle with a straight vertical or horizontal side is eliminated by this method).
Either way, super fun challenge @CharlieS!
Cheers,
NJ