I got a paper containing code of a C function. The interviewers left the room for 5-10 minutes so I can study the code, then returned and asked questions about the code.
What does the following code do?
What changes would you make to improve the code (not regarding performance)?
void func(int array[ARRAY_SIZE]) { int p = 0; for (int r = 0; r < 4; r++) { for (int i = p; i < ARRAY_SIZE; i++) { if (array[i] % 5 == r) { if (i != p) { int temp = array[p]; array[p] = array[i]; array[i] = temp; } p++; } } } }
The following metrics were computed from 1 interview experience for the Mobileye C++ Software Developer role in Israel.
Mobileye's interview process for their C++ Software Developer roles in Israel is incredibly easy as the vast majority of engineers get an offer after going through it.
Candidates reported having very good feelings for Mobileye's C++ Software Developer interview process in Israel.