lessthandot - Regular Pentagon Puzzle(forum.lessthandot.com)

submitted by AlexCuseAlexCuse(325) 3 years, 11 months ago

We've decided to do a recurring feature at LessThanDot and have a "Programmer Puzzles" section with interesting puzzles published. This week the challenge is to identify the outer points in a regular pentagon (or n-sided polygon for extra credit), given the center point and the radius. You can use any programming language you like, just please let people know which one you have decided to use!

1 comment |category: |Views: 8

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by AlexCuseAlexCuse(325) 3 years, 11 months ago 0

It's been pointed out to me that I goofed in my post here. You actually shouldn't be given the radius, and only the perimeter. I'd already been working on this, and forgot about that first step of getting the radius :(

Reply

information Login or create an account to comment on this story