View Single Post
  #1  
Old 04-06-2012, 08:01 AM
Mark Sir Link Mark Sir Link is offline
Kevin Azite
Mark Sir Link's Avatar
Join Date: Sep 2005
Posts: 1,489
Mark Sir Link is just really niceMark Sir Link is just really nice
Send a message via AIM to Mark Sir Link
Programming Exercise: License Plate Company

taken from http://code.ign.com/foo

Quote:
You own a license plate manufacturing company. Write a program that takes a population and determines the simplest pattern that will produce enough unique plates. Since all the plates that match the pattern will be generated, find the pattern that produces the least excess plates. Use a combination of letters (A-Z) and numbers (0-9).
Simplest pattern seems open to interpretation, meaning that a mixture of numbers and letters is probably acceptable, IE, A03B21C, but then all plates must follow that same ordering of letters and numbers

EDIT: AAA-### should yield the same maximum combination of plates as mixing them together. I apologize.

Last edited by Mark Sir Link; 04-06-2012 at 08:46 AM..
Reply With Quote