Microsoft·Data Scientist·Technical Phone Screen
Jun 2026
Microsoft data scientist interview with a coding question that was more of an algorithms exercise than anything ML-related. One question, but they wanted the whole package: working code, complexity analysis, edge case tests, and proof the operation was in-place.
- Write a function that reverses a Python list in-place, with O(n) time and O(1) extra space. No slicing, no built-in reverse helpers. Show it works for empty lists, single-element lists, and a specific six-element example, and include a test that confirms the list object id doesn't change.
“The two-pointer swap is pretty standard but I spent an embarrassing amount of time second-guessing whether swapping with a temp variable counted as 'extra space.' It doesn't, obviously.” The rest of the author's notes on Data Scientist interview at Microsoft, Technical Phone Screen round, covers how they worked through the question, what the panel pushed back on, and what they would do differently.
View Post