[Challenge] threads are essentially puzzles. Someone (you!) can post a question that would be interesting to see various solutions to. Just pop [Challenge] in the thread subject somewhere.
When someone posts a [Challenge] thread it'll be linked to here so they're easy to find again:
The moderation team has been discussing ideas for challenges and we think that it's a very good idea. We invite everyone to get involved in solving and coming up with ideas for challenges.
astions wrote:The moderation team has been discussing ideas for challenges and we think that it's a very good idea. We invite everyone to get involved in solving and coming up with ideas for challenges.
[quote="Benjamin"]The moderation team has been discussing ideas for challenges and we think that it's a very good idea. We invite everyone to get involved in solving and coming up with ideas for challenges.[/quote]
That is great to know. I love to face new "challenges" LOL, although I am not (regretfully) always very good at solving them. But I keep trying ... ;)
Last edited by sukrityt8 on Fri Aug 20, 2010 4:34 am, edited 1 time in total.
Implement regex-based URL routing: Given a URL, passed by the web server to your front controller, find the most efficient way to match said arbitrary URL against an arbitrarily large list of URL regex's, with an emphasis on avoiding the overhead of repeated preg_match (or similar) calls.
Extra credit: Minimize the number of regex matches while still allowing duplicate named patterns in your URL regex's.
This is a problem I've worked with recently and would be interested in seeing more solutions to.
I don't really think that's a good idea. The point of coding challenges is to find interesting and inventive solutions to arbitrary problems - it's very likely those solutions won't necessarily be the best ones from a readability, efficiency or practical point of view. If we use realistic scenarios people might take the code and use it on their websites, introducing all sorts of security and usability issues along the way.