Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 1020 Bytes

README.md

File metadata and controls

43 lines (28 loc) · 1020 Bytes

Missing Number

The Problem

Please write a program which finds the missing number in a sequential series of numbers. The program should:

  1. Accept a flat file as input.
    1. Each new line will contain a set of sequential numbers with one number missing.
    2. Each series will be comma delimited and in a random order
  2. Output the missing number for each series

Sample Input

1,2,3,4,5,6,7,8,9,10,12

24,26,27,29,28

1,2,4,5

99,100,101,102,103,104,105,107

109,105,107,108,106,110,112,111,118,116,115,114,117

Sample Output

11

25

3

106

113

The Fine Print

Please use whatever technology and techniques you feel are applicable to solve the problem. We suggest that you approach this exercise as if this code was part of a larger system. The end result should be representative of your abilities and style.

Please fork this repository. When you have completed your solution, please issue a pull request to notify us that you are ready.

Have fun.