The [Challenge] Index

Where we keep all the boring tidbits about the PHPDN site, the news, and what not.

Moderator: General Moderators

The [Challenge] Index

Postby onion2k » Tue Aug 25, 2009 3:59 am

[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:


Syntax: [ Download ] [ Hide ]
.....................................................
: Challenge                          : Author       :
:....................................:..............:
: <a href="http://forums.devnetwork.net/viewtopic.php?t=105200" class="postlink">Database Connection</a>                : klevis miho  :
: <a href="http://forums.devnetwork.net/viewtopic.php?t=105220" class="postlink">Secret Decoder Ring</a>                : McInfo       :
: <a href="http://forums.devnetwork.net/viewtopic.php?t=105238" class="postlink">What color is the text?</a>            : onion2k      :
: <a href="http://forums.devnetwork.net/viewtopic.php?t=105337" class="postlink">Draw a chess field</a>                 : klevis miho  :
: <a href="http://forums.devnetwork.net/viewtopic.php?t=105420" class="postlink">Snakes and ladder style board</a>      : mikemike     :
: <a href="http://forums.devnetwork.net/viewtopic.php?t=105592" class="postlink">largest factorial</a>                  : jazz090      :
: <a href="http://forums.devnetwork.net/viewtopic.php?t=106110" class="postlink">Array Reversing button</a>             : lunaticrabic :
: <a href="http://forums.devnetwork.net/viewtopic.php?t=106119" class="postlink">Colour rotation</a>                    : SimonMayer   :
: <a href="http://forums.devnetwork.net/viewtopic.php?t=106143" class="postlink">Create a Form Description Language</a> : joeynovak    :
: <a href="http://forums.devnetwork.net/viewtopic.php?t=106495" class="postlink">Seeing Stars (and a Diamond)</a>       : McInfo       :
: <a href="http://forums.devnetwork.net/viewtopic.php?t=106778" class="postlink">Make a functional calendar</a>         : Griven       :
: <a href="http://forums.devnetwork.net/viewtopic.php?t=107654" class="postlink">Images the Hard Way</a>                : McInfo       :
: <a href="http://forums.devnetwork.net/viewtopic.php?t=108087" class="postlink">The Coder Cypher</a>                   : Weiry        :
: <a href="http://forums.devnetwork.net/viewtopic.php?f=1&t=110387&start=0&st=0&sk=t&sd=a" class="postlink">Zig-Zag Traversal</a>                  : VladSun      :
:....................................:..............:


(Thanks to McInfo for the fancy table thing)
User avatar
onion2k
Jedi Mod
 
Posts: 5263
Joined: Tue Dec 21, 2004 6:03 pm
Location: usrlab.com

Re: The [Challenge] Index

Postby jackpf » Tue Aug 25, 2009 6:28 am

With kudos to ~klevis miho of course for originally coming up with the idea :P
User avatar
jackpf
DevNet Resident
 
Posts: 2119
Joined: Sun Feb 15, 2009 8:22 pm
Location: Ipswich, UK

Re: The [Challenge] Index

Postby Benjamin » Thu Aug 27, 2009 12:03 am

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.
Image
User avatar
Benjamin
Site Administrator
 
Posts: 6867
Joined: Sun May 19, 2002 10:24 pm

Re: The [Challenge] Index

Postby klevis miho » Thu Aug 27, 2009 5:11 am

You should really open a category for that man :)
klevis miho
Forum Contributor
 
Posts: 413
Joined: Wed Oct 29, 2008 2:59 pm
Location: Albania

Re: The [Challenge] Index

Postby mikemike » Fri Aug 28, 2009 6:11 pm

User avatar
mikemike
Forum Contributor
 
Posts: 355
Joined: Sun May 24, 2009 5:37 pm
Location: Chester, UK

Re: The [Challenge] Index

Postby urvashi » Fri Sep 11, 2009 7:35 am

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.



nice
urvashi
Forum Newbie
 
Posts: 1
Joined: Fri Sep 11, 2009 5:57 am

Re: The [Challenge] Index

Postby VladSun » Fri Dec 18, 2009 8:19 am

User avatar
VladSun
DevNet Master
 
Posts: 4294
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: The [Challenge] Index

Postby John Cartwright » Fri Dec 18, 2009 5:02 pm

Code: Select all
if ($toBe || $notToBe) echo 'That is the question'; 

NEW HERE?: Please read the Forum Rules, and take the Forum Tour before posting!
User avatar
John Cartwright
Site Admin
 
Posts: 11470
Joined: Tue Dec 23, 2003 3:10 am
Location: Toronto

Re: The [Challenge] Index

Postby faymy001 » Wed Feb 10, 2010 11:57 pm

Testing
faymy001
Forum Newbie
 
Posts: 2
Joined: Sun Jan 24, 2010 8:37 pm

Re: The [Challenge] Index

Postby timWebUK » Fri Feb 12, 2010 6:27 am

User avatar
timWebUK
Forum Contributor
 
Posts: 239
Joined: Thu Oct 29, 2009 6:48 am
Location: UK

Re: The [Challenge] Index

Postby VladSun » Tue Mar 02, 2010 10:05 am

User avatar
VladSun
DevNet Master
 
Posts: 4294
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: The [Challenge] Index

Postby sukrityt8 » Sun Mar 21, 2010 12:31 am

[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.
sukrityt8
Forum Newbie
 
Posts: 1
Joined: Sun Mar 21, 2010 12:24 am

Re: The [Challenge] Index

Postby VladSun » Wed Mar 31, 2010 7:44 am

User avatar
VladSun
DevNet Master
 
Posts: 4294
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: The [Challenge] Index

Postby phu » Thu Apr 01, 2010 3:26 am

How about something practical?

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.
phu
Forum Commoner
 
Posts: 61
Joined: Tue Mar 30, 2010 6:18 pm

Re: The [Challenge] Index

Postby onion2k » Fri Apr 02, 2010 4:42 am

phu wrote:How about something practical?

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.
User avatar
onion2k
Jedi Mod
 
Posts: 5263
Joined: Tue Dec 21, 2004 6:03 pm
Location: usrlab.com

Next

Return to Site News

Who is online

Users browsing this forum: No registered users and 1 guest