PMT3 - PMT

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
PMT Question – Find the Missing Number Spring 2009 You will be given an input file (named input.txt). The  first line  in the file tells you the total  number of lines in the file  other than the line identifying the starting point .  All the other lines in  the file will contain a series of numbers separated with the semicolon (“;”) character.  (Note:  Each line in the file could have a different number of numbers). For example, the first line looks like: 4;2;1;5 The numbers in each line are in a random order. Each number is unique, and falls in the  range of 1 - N+1, where N is equal to the count of numbers in the line.   Using the example above: The count of number of numbers in the line N = 4 All of the numbers in the line fall in the range of 1-5, since N = 4 In each line, one of the numbers in the range is missing.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/17/2010 for the course CS 1120 taught by Professor Zillehumakamal during the Spring '07 term at Western Michigan.

Page1 / 2

PMT3 - PMT

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online