My Mailbox is groaning, under the weight
Brute force as an algorithm has its place but there are more ways to skin this cat, metaphorically speaking. I'm not a candidate for the Fields's Medal which is given every 4 years to an outstanding mathematician, but I managed to solve it with pen and paper in well under 20 minutes. Let me give you a hint: Factorials. I'll explain how next month.
Have a good weekend and keep the entries coming in. Remember you can submit source code in C, C++ or C#. I've already got next month's challenge ready for you, and if anyone has any ideas for future challenges, please email me at the usual email address cplus.guide@about.com.


Comments
No comments yet. Leave a Comment