Closed Thread
Page 1 of 10 123 ... LastLast
Results 1 to 10 of 100

Thread: Coder Battle #2: Sorting

  1. #1
    Jordan Guest

    Coder Battle #2: Sorting

    Welcome to the official thread for Coder Battle #2. If you haven't done so already, please read the rules here: Coder Battle Rules

    Battle #2: Rules
    For this battle you will write a sorting algorithm. The complete program should accept a file path argument (or allowing selecting a path) and parse a CSV File. The CSV file will contain at most 20 lines and each line will have data in the following format:

    integer(comma)String Wrapped in Double Quotes(comma)integer

    An example:
    Code:
    20,"ABCDE",30
    Your sorting algorithm will need to sort by the first integer, string ("ABC" should be listed before "ABCD") and the second integer.

    If your program was given this file:
    Code:
    19,"DEF",21
    19,"ABC",10
    4,"XYZ",59
    4,"XYZ",47
    98,"String Value",1234
    It should be sorted into:
    Code:
    4,"XYZ",47
    4,"XYZ",59
    19,"ABC",10
    19,"DEF",21
    98,"String Value",1234
    Judging
    The judges will analyze performance on several source files to probe for weaknesses in the algorithm. This battle will be judged by the forum staff using a voting system similar to Battle #1. This means that moderators and admins cannot participate in this battle. We will attempt to trip your algorithm up by using known sorting weaknesses. You should keep this in mind when building your algorithm and learn what weaknesses exist.

    Submissions
    Submissions must include source code and either directions for compiling or a compiled version. You will need to send the submissions to me via email. Please zip the source and the compiled versions in separate files. My email address is my username @codecall.net.

    Duration
    Submission must be handed in by November 15th. That is 14 days from now so you have plenty of time.

    Compete
    If you want to participate in this battle please reply to this thread with the language you will be building your algorithm in.

    Reward
    The winner will receive a +rep from two of the mods/admins (~40 +rep). Runner-up will receive +rep from one of the mods/admins (~20 +rep).


    Do not use any built-in sorting functions! Your algorithm should be your own.

  2. CODECALL Circuit advertisement

     
  3. #2
    Join Date
    Aug 2007
    Location
    Gizeh, Al Jizah, Egypt, Egypt
    Posts
    8,675
    Blog Entries
    12
    Rep Power
    81

    Re: Coder Battle #2: Sorting

    Count me in, ill be using C#

  4. #3
    Join Date
    Sep 2008
    Location
    Australia
    Posts
    4,834
    Blog Entries
    10
    Rep Power
    51

    Re: Coder Battle #2: Sorting

    I think I will pass on this one I will still help whoever needs it
    jQuery Selectors Tutorial - jQuery Striped Table tutorial - jQuery Events - jQuery Validation
    Sorry if I don't post as often as I did, I'll try to get here as much as possible! I'm working my bum off to get this scholarship and other stuff!

  5. #4
    Join Date
    Oct 2008
    Location
    Pahrump, Nevada
    Posts
    787
    Blog Entries
    1
    Rep Power
    20

    Re: Coder Battle #2: Sorting

    I will join in for the fun.

    Language: Python

    (.. lol I am not going to do very well in this because I am by no means a Python guru 0.0 lol...)

    +Friend Me | My Graphics | Forum Rules | Help Forum | Forum FAQ

  6. #5
    Jordan Guest

    Re: Coder Battle #2: Sorting

    Quote Originally Posted by Brandon W View Post
    I think I will pass on this one I will still help whoever needs it
    How come? It would be great practice for you in PHP.

  7. #6
    melink14 is offline Newbie
    Join Date
    Jun 2007
    Posts
    6
    Rep Power
    0

    Re: Coder Battle #2: Sorting

    I'll probably do this. Probably in C++.

    Does it have to compile on a specific platform?

  8. #7
    Jordan Guest

    Re: Coder Battle #2: Sorting

    No, what platform are you planning on using?

  9. #8
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,174
    Blog Entries
    13
    Rep Power
    114

    Re: Coder Battle #2: Sorting

    I'm making one with a nice GUI in VB.NET.

    Quote Originally Posted by Jordan View Post
    Good members, like yourself, stick around and post for ages to come!
    Mr. Xav | Blog | Forums

  10. #9
    Join Date
    Mar 2008
    Posts
    7,145
    Rep Power
    86

    Re: Coder Battle #2: Sorting

    Quote Originally Posted by Brandon W View Post
    I think I will pass on this one I will still help whoever needs it
    C'mon - You can do it. It'll be a great challenge for your PHP skills. C'mon you can do it.

    Anyways yeah I'll try to come up with something in Java.

  11. #10
    melink14 is offline Newbie
    Join Date
    Jun 2007
    Posts
    6
    Rep Power
    0

    Re: Coder Battle #2: Sorting

    Quote Originally Posted by Jordan View Post
    No, what platform are you planning on using?
    I was probably going to do it with g++ on linux, since that's what I've been using lately. But it might be useful to dust off the old visual studio as well. So I was wondering if it mattered.

Closed Thread
Page 1 of 10 123 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts