Here's a problem I'm working on, maybe one of you would like the challenge. I need to find the missing number in an array that looks like:
01, 02, 03, 05, 06, 07
script should return 4
The challenge is the array may sometimes be null, and also may sometimes have only 1 element thus becoming a two character string.
find missing element in an array
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
find missing element in an array
Here's a problem I'm working on, maybe one of you would like the challenge. I need to find the missing number in an array that looks like:
01, 02, 03, 05, 06, 07
script should return 4
The challenge is the array may sometimes be null, and also may sometimes have only 1 element thus becoming a two character string.
01, 02, 03, 05, 06, 07
script should return 4
The challenge is the array may sometimes be null, and also may sometimes have only 1 element thus becoming a two character string.
find missing element in an array
Forgot to add, the difference between the numbers may be greater than 1 such as
01, 02, 06, 07
but I'm always looking for the lowest missing number.
01, 02, 06, 07
but I'm always looking for the lowest missing number.
find missing element in an array
Will the array always start at 1? Is it possible that the array could start at 2?