Madgex Labs Logo

Coding Challenge – Palindrome

March 16th, 2010 - Jane Dallaway

The Easter coding challenge for the development team is as follows:

This time the challenge is related to palindrome numbers. A palindrome number is one which is the same when read from either end, i.e. 1, 11, 101, 10101, 12321 etc

The challenge is to produce a console application in C#, which takes in a file of input numbers (specified as an argument to the console app) and outputs a list of numbers which are the next largest palindrome numbers to those specified in the input file.

So, for example, if the input file consisted of:
100
8
101

The output file should contain:
101
9
111

The input file will always be in the format of numbers separated by line breaks and ending with a number.

The code should be supplied in a single file, and the solution which output the correct results in the shortest number of ; characters and the number of } characters (i.e. statements) will be the winner. Only .Net standard assemblies should be referenced.

All solutions should be submitted by midday on 31st March

Leave a Reply