I applied through a staffing agency. The process took 1 week. I interviewed at Algotec (Ra`ananna) in Apr 2016
Interview
The first interview with a team leader, an exam (about an hour and a half).
Second interview with group manager, another question (about an hour).
the process was fast, people are fairly nice
Interview questions [5]
Question 1
Write a function that gets an array of numbers and zero's and returns the array without the zero values. should be consider run time (without extra memory)
var funcs = {};
for (var i=0; i<3; i++){
funcs[i] = function(){
alert[i);
}
}
for (var j = 0; j < 3; j++){
funcs[j]();
}
the code should print 0, 1, 2.
but there is a bug, what is it and how should you fix it?
Given a code A wrote, putting the code in a given code B.
there is the same parameter 'i' in A code & B code.
the code doesn't work:
1. why?
2. how to fix.
3. how to make it generic
OO structure question of building a post system that can create notes on a screen.
describe how you would do UNDO function.
give 2 answers, one should be fast, the other low memory.
Second interview:
Given a system the knows how to handle Queues, give a solution to a slow process to handle messages that are kept in a queue.
the types are A,B,C.
the queue is like A,A,B,C,A
rules:
1. can't process same message type at the same time (order must be kept)
an expansion to the queue is a message of two types AC that cannot be split.