Data Max Internship Assignment
<FirstName
> <Lastname
>
<email
>
- Time Complexity in terms of Big-O notation:
- Algorithm summary:
You wrote down the numbers from 1 to n
, in order, on a whiteboard.
When you weren’t paying attention, a student erased one of the numbers.
Can you find the missing number?
The first line of input contains a single integer n
(2 <= n <= 100), which is the number of numbers that you wrote down.
The second line of input contains a string of digits, which represents the numbers you wrote down (minus the one that has been erased).
There are no spaces in this string. It is guaranteed to contain all the numbers from 1 to n
, in order,
except for the single number that the student erased.
1. Loads the string of numbers in the input into a list of integers.
- Find the missing number from the list.
- Use only arrays/lists as data structures. Sets, trees or maps are not allowed.
- Aim for an optimal solution.
- Avoid using predefined functions like
sort
,min
,max
, etc. - Preferred programming languages: C++, Java, Python
- Don't produce additional output other than the required output
⚠️ IMPORTANT Use the defined input format
- Create a new private repository for your exercise and add the hiring team members as private collaborators
- Create, commit and push your solution
- Add a
README.md
file with information about yourself and about your solution (Feel free to take parts from this repo'sREADME.md
) - Invite as contributors: Sadik Bakiu, Bujar Bakiu, Redi Cane
- Correctness of the solution
- Time complexity of the solution
- Clarity of the solution
- Readability of the code
- Memory efficiency of the solution
Made with ❤️ by Data Max