Test 3 – How Fast Can You Sort 1,000,000 Items
Superior Consulting Services (SCS) is offering a series of technical coding challenges designed to challenge and test the skills of C# application developers while also educating them on the latest in coding. This blog addresses C# basics and presents SCS’ third challenge: how fast can you sort 1,000,000 items.
The C# style game is on!
Below is the third challenge. Each SCS challenge will require the user to solve a problem and present their approach through a coded solution. All questions are designed to be solvable by mid-level C# application developers in one hour or less.
An application needs to sort data as fast as possible.
Using the class below, create a single method in C# to sort a collection of 1,000,000 string objects of length 64 characters and return the collection in descending alphabetical order, i.e. from Z to A. A prototype of this method is highlighted in the code sample below and highlighted yellow.
You may use any collection class to store and send the data to the sort method, but you cannot do anything to preprocess, format or sort the data prior to calling your sort method.
The winner of this challenge will produce a result that sorts the list in the fastest time as measured by the embedded stopwatch function in the code below.
1. The Method should contain all appropriate attribution, decoration, typing, and punctuation.
2. The program, including the created method must compile, build and run without errors or warnings.
3. Contestant challenge submittals should be emailed to email@example.com with the subject line SCS Coding Challenge #3
4. Reponses to Challenge #3 need to be received by 5:00 pm CDT on May 6, 2015
5. In the event of a tie between two or more winning solutions, the first solution received will receive the prize; however, all submitters with correct solutions will be recognized.
6. Employees of SCS are not eligible to participate in the coding challenge.
The best solution submitted will receive an Amazon gift certificate worth $25.00 and have the winning solution, along with the winner’s name, on the SCS website: www.teamscs.com.