The Programmer's Challenge
About the Challenge
Here's how it works: Each month we present a new programming challenge. First, write some code that solves the challenge. Second, optimize your code (a lot). Then, submit your solution to MacTech Magazine. We choose a winner based on code correctness, speed, size, and elegance (in that order of importance)
as well as the submission date. In the event of multiple equally desirable solutions, we'll choose one winner (with honorable mention, but no prize, given to the runner up). The prize for each month's best solution is a $100 credit for Developer
Depot, split between the winner and the best-placing entry from someone who hasn't won recently. You can share in the prize even if you don't win, so try your hand at the Challenge.
Current Challenge
- The current Challenge is over.
Previous Challenges:
The Challenge is distributed to participant through the mailing list and the MacTech web site. This way, contestants all over the world are assured that they will receive the Programmer's Challenge in a timely manner.
Rules
Unless stated otherwise in the problem statement, the following rules apply: All solutions must be in ANSI compatible C. Use only pure C code. We disqualify entries with any assembly in them (except for challenges specifically stating otherwise). You may call any Macintosh Toolbox routine (e.g., it doesn't matter if you use NewPtr instead of malloc). We test entries with compiler options set to disable FPU use (for 680x0 code) and to enable all available speed optimizations. The compiler to be used and the target instruction set (680x0 or PowerPC) will be stated in the problem. Limit your code to 60 characters per line; this helps with e-mail gateways and page layout.
We publish the solution and winners for each month's Programmer's Challenge two months later. All submissions must be received by the 1st day of the month printed on the front cover of this issue.
Mark solutions "Attn: Programmer's Challenge Solution" and send it to
progchallenge@mactech.com. Include the solution, all related files, and your contact info.
MacTech Magazine reserves the right to publish any solution entered in the Programmer's Challenge. Authors grant MacTech Magazine the exclusive right to publish entries without limitation upon submission of each entry. Authors retain copyrights for the code.
Mailing List
Though it's not required, if you plan to enter the Challenge, you should subscribe to the Programmer's Challenge Mailing Lists. Everyone should subscribe to the announcement list, Challenge-A. The latest Programmer's Challenge, and updates to the Challenge are posted to this list.
People who want to discuss the latest Challenge can join the discussion list, Challenge-D.
You can get a head start on the Challenge by reading the Programmer's Challenge mailing list. It will be posted to the list on or before the 12th of the preceding month. To join, send an email to listserv@listmail.xplain.com
with the subject "subscribe challenge-a" for announcments or "subscribe challenge-D" for discussion.
FTP Site
An ftp area has been set up for you so that you can download test data, share solutions, and exchange code. To upload or download from this archive, just anonymous ftp to ftp.mactech.com in the directory /challenge/.
|