The interviewers discuss the project experience on the resume, ask questions such as difficulties and solutions, and discuss how to optimize in some environments with poor networks. Later, some algorithm questions will be asked, such as partial sorting and binary search.
Given an array of integers, write a function to find the indices m and n.
As long as the elements in the index range [m, n] are sorted, the entire array will be in order.
Note: n-m should be as small as possible, that is, find the shortest sequence that meets the conditions.
The function return value is [m,n].
If there is no such m and n (for example, the entire array is ordered), please return [-1,-1].
The following metrics were computed from 3 interview experiences for the Xiaomi Software Engineer role in Beijing, China.
Xiaomi's interview process for their Software Engineer roles in Beijing, China is fairly selective, failing a large portion of engineers who go through it.
Candidates reported having very good feelings for Xiaomi's Software Engineer interview process in Beijing, China.