Internship for Bachelor of Computer Science or Business Information Technology Students
Olivine Technology Ltd would like to recruit TWO interns who are currently pursuing their first year in either a Bachelor of Computer Science or Business Information Technology.
To apply for the position kindly attempt the following:
In a programming language of your choice:
1. Write a function that takes as its input an array of size n and returns 0 if the array contains all the values from 1 through n, otherwise the function returns 1.
For Example:
A. If the input array is [1, 2, 3, 4, 5]
return 0
Since the array has five elements and all the numbers from 1 to 5 are present.
B. If the input array is [1, 2, 3, 4, 5, 18]
return 1
Since the array has six elements and all the numbers from 1 to 6 are NOT present (6 is missing)
Kindly, email your answer to info@olivinetech.com. Closing date for submission of your answer is 20th June Mid-night