I participated in two on-site interviews at Mail.ru. Each interview is split into 1 to 3 parts of 1-hour long sessions with different teams. Be prepared to write your code on paper or white board.
Suppose you have a large array of integers that could not be loaded into RAM. How would you sort it?
How to use *nix commands ‘sed’ and ‘grep’?
Find substring in string (using only C language) and return its start position. If substring is not found, return ‘-1’.
Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. You are given a target value to search. If found in the array return its index, otherwise return ‘-1’. You may assume no duplicate exists in the array.
You’re refactoring a function void processFile(). It starts with call to fopen() to open file, then we call several operations (they could throw exceptions) and finally at the end of the function we call fclose() to close file. Detect problem with this code and fix it (provide as many variants as you can).
What STL algorithms do you use? Describe advantages of using STL algorithms.
How to remove value K from std::vector using std::remove and std::erase algorithms? How these algorithms work?
Describe differences between std::vector and std::list. Pros and cons of each of these data structures?
How std::vector would grow in size if we would add elements one by one? Time complexity of push_back() in worst and average case?
Which smart pointers are available in C++? Describe their differences and use cases.
Which software design patterns do you know? How to use them?
The following metrics were computed from 1 interview experience for the VK C++ Engineer role in Moscow, Russia.
VK's interview process for their C++ Engineer roles in Moscow, Russia is extremely selective, failing the vast majority of engineers.
Candidates reported having mixed feelings for VK's C++ Engineer interview process in Moscow, Russia.