Computer HardwareXbox GamesGameCubePlaystation 2PSOnePC/Windows GamesGameboy AdvanceDreamcastNintendo 64Gameboy ColorNintendo DSSony PSPXbox 360Nintendo Wii GamesPS3 Games

Neoseeker Forums » Programming and Design » Web Coding » Challenge Threads

Moderated by: Kuldahar,  Artificer
REPLY TO THIS THREAD   START NEW THREAD
Options: Print   subscribe   remove   send to friend   PM this thread to a friendNeoPM
Topic: Challenge Threads
Artificer
Jan 19, 08 at 02:55PM
Challenge Threads

I recently had an idea of challenge threads, which would allow someone to present some sort of tech problem to the forum and challenge others to post their solutions to the problem. At the end of some time limit (perhaps about 2 weeks), the person that issues the challenge judges the answers based on a set of criteria, like whether it actually solves the problem, efficiency, elegance, etc.

The person that wins issues the next challenge, and the cycle continues. I think it's up to the judge to decide what programming languages are allowed.

Here's a simple example: (Forgive me if I messed up the PHP; I don't work in it often.)

Judge:

    Given an array of integers, find the largest one.
Challenger 1:
    php code
    
    function findLargest($array) {
        $highestVal = 0;
        for ($i = 0; $i < count($array); ++$i) {
            if ($array[$i] > $highestVal) {
                $highestVal = $array[$i];
            }
        }
        
        return $highestVal;
    }
        
Challenger 2:
    php code
    
    function findLargest($array) {
        $highestVal = NULL;
        $size = count($array);
        if ($size > 0) {
            $highestVal = $array[0];
            for ($i = 1; $i < $size; ++$i) {
                if ($array[$i] > $highestVal) {
                    $highestVal = $array[$i];
                }
            }
        }
        
        return $highestVal;
    }
        
* other posts *

Judge:
    Challenger 2 wins because if I pass in an array with all negative values, Challenger 1's entry will return 0.


Is this something you guys would be interested in? I think it can be a great learning opportunity for all of us.

Challenges to Date

HTML Tag Parsing - Artificer

[size=1][color=#666666]This message was edited by Artificer on Jan 19 2008.



-------------------

Pandora.com | Thinkers perish; thoughts don't.
quote   quick quote   edit   quick edit   del  report
Members, log in or register to remove these ads.
lord monkey
Rock Me Sexy Jesus
ultra seeker

wiki staff
dynastywarriors




lord monkey's profilelord monkey's neohomeEmail lord monkeyNeoPM lord monkey
total posts: 1491
since: Jun 2003
Jan 19, 08 at 03:58PM
re: Challenge Threads

I think that that is really interesting. Are you going to do the next challenge?



-------------------
quote   quick quote   edit   quick edit   del  report
Artificer
Jan 19, 08 at 04:20PM
re: Challenge Threads

Yeah I had intended to start things off—I have an idea for a good problem, too.

I'll go ahead and post one later tonight.



-------------------

Pandora.com | Thinkers perish; thoughts don't.
quote   quick quote   edit   quick edit   del  report
Mr_Roboto
Freebies Rule
high on "N"



Mr_Roboto's profileMr_Roboto's neohomeNeoPM Mr_Roboto
since: Jul 2004
Jan 19, 08 at 08:14PM
re: Challenge Threads

Get on with it already.



-------------------
quote   quick quote   edit   quick edit   del  report
Artificer
Jan 19, 08 at 10:14PM
re: Challenge Threads

Sorry, got caught up in a movie...



-------------------

Pandora.com | Thinkers perish; thoughts don't.
quote   quick quote   edit   quick edit   del  report
Dark Reaper
moderator

Site Bug Reports


Dark Reaper's profileDark Reaper's neohomeNeoPM Dark Reaper
since: Dec 2001
May 04, 08 at 01:01PM
re: Challenge Threads

More!



-------------------












quote   quick quote   edit   quick edit   del  report
Artificer
May 05, 08 at 06:09AM
Challenge Threads

Ironically, after you posted that, I got an idea for one. I think I'm going to pull back and make it focus on web development more than abstract algorithms questions. I'm a little busy this week, but I think by Wednesday I should be able to post one.



-------------------

Pandora.com | Thinkers perish; thoughts don't.
quote   quick quote   edit   quick edit   del  report
lord monkey
Rock Me Sexy Jesus
ultra seeker

wiki staff
dynastywarriors




lord monkey's profilelord monkey's neohomeEmail lord monkeyNeoPM lord monkey
total posts: 1491
since: Jun 2003
Jul 19, 08 at 11:31AM
re: Challenge Threads

*cough*



-------------------
quote   quick quote   edit   quick edit   del  report
Artificer
Jul 19, 08 at 11:33AM
re: Challenge Threads



-------------------

Pandora.com | Thinkers perish; thoughts don't.
quote   quick quote   edit   quick edit   del  report
[All dates in (PST) time]Threads List   « Next Newest   Next Oldest »
REPLY TO THIS THREAD   START A NEW THREAD



Jump to another forum:

Powered by neoforums v0.9.3d (equilibrium)
Copyright Neo Era Media, Inc. 1999-2008

neoseeker forum community
Neoseeker.com   |   Forum Rules   |   Forum FAQ   |   Neoseeker Terms of Use   |   Supermods On Duty [ server id: ascension ··· elapsed: 0.3788280487]
Affiliated sites:   GameGrep - Football Manager Wiki - Halo Wiki - MGS Wiki - GTA Wiki - Smackdown Wiki - Zelda Wiki - PS2seeker - Xbox seeker - GC seeker - DEVPEN - GFXcess