Because many friends ask me to write a blog about how to deal with VO or mock interviews, I write this to share the process I will do during VO. This blog only represents personal suggestions, if you disagree, please try to avoid using it! If you have any suggestions to make it better, please feel free to contact me!
Background
VO is the online video interview, the interviewer will give you one or two algorithm questions and you need to give the best solutions with minimal time complexity and space complexity.
The No. 1 thing we need to know is that the interview is a chance for you to cooperate interviewer and they may your future colleagues, and expect you can clearly express solutions you have or problems you meet and can solve problems after receiving the hints.
Interview Process
Problem Description
Try to ask the interviewer to give the text version of the problems and specific examples
Request information about arguments’ boundary
Solution
If you have enough time, you can write down brief solutions from brute force solution to an optimized solution
Write down the best solution steps with a brief description and ask the interviewer whether you are on the right track and can implement it or not
Coding
Write the best algorithm with continuing to describe what you are writing
Give necessary comments for important steps with order number
Dry run
Dry run your code with the example you get previous
Step-by-step dry run to check whether you can get the expected result
Analysis
Ask whether the solution works for your interviewer, if works, then you can give your algorithm’s time complexity and space complexity.
Template example
1 | /** |