- The candidate gets 30 minutes to implement the first exercise. Afterwards the candidate explains his solution. Interviewer gives feedback.
- The candidate gets another 30 minutes to implement the second exercise. Afterwards the candidate explains his solution.
- Technical interview: candidate explains to the interviewer what the program does and fixes the failing unit tests.
- Make sure the candidates are in different rooms. Candidate A and Candidate B both get 30 minutes to solve a different exercise. Afterwards each candidate explains his solution to the interviewer.
- Afterwards they switch laptops. Each candidate now needs to analyze and explain the other candidate's solution. What would they do different? Why? (Backup plan in case the candidate did not manage to complete the exercise: have a messy solution prepared.)
- Technical interview: candidate explains to the interviewer what the program does and fixes the failing unit tests.
- Laptop with AZERTY keyboard
- Eclipse IDE with Java and jUnit (no other libraries)
- No internet connection
- Clean code + object oriented principles?
- Test driven approach?
- Does the candidate pick up feedback from the interviewer and put it into practice?
- Is the candidate not afraid to speak up during the technical interview? Are the soft skills ok?
Write a program to detect if two strings are anagrams. An anagram is a word or phrase formed by rearranging the letters of another. For example:
night
andthing
schoolmaster
andthe classroom
a telephone girl
andrepeating 'Hello'
Write a program that prints the numbers from 1 to 100. But for multiples of three print Fizz
instead of the number and for the multiples of five printBuzz
. For numbers which are multiples of both three and five print FizzBuzz
.
For a given integer K, print the first K rows of Pascal's Triangle. Print each row with each value separated by a single space. The value at the nth row and rth column of the triangle is equal to n!/(r! * (n-r)!)
where indexing starts from 0.
- The factorial of n:
n! = n * (n-1) * ... * 2 * 1
For example: 5! = 5 * 4 * 3 * 2 * 1 = 120
5
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
The Aquarium is a magical world for fishes with all kinds of colors. However, all unit tests of The Aquarium are failing. Can you fix the Aquarium and its tests so all the fish can live happily ever after?