NewProject Coding is here — build features and fix bugs in real codebases with an AI assistantSee what's new
avatar
User-xmdedJun 27, 2026

MAI Copilot phone screen, Pending, sliding window problem + BQ

Interview Experiences
microsoft

MAI Copilot phone screen, Pending, sliding window problem + BQ

Sharing my phone screen experience for MAI Copilot since I couldn't find much out there. Still waiting on results so this might end in a 挂经, who knows.

Recruiter reached out cold on LinkedIn, no referral. Scheduled the screen about a week later. The interviewer was a senior SDE on the Copilot team.

First 20-ish minutes were BQ. He asked me to walk through my most complex end-to-end project and then dug into how I handled a situation where I had to push a cross-team dependency without authority. Pretty standard Microsoft stuff based on what I'd read, but the follow-up questions were deeper than I expected. He wanted specifics on the timeline, who the stakeholders were, what happened when the other team pushed back. I felt okay about it but honestly hard to gauge.

Coding came next. He gave me a problem where you have an array of integers and a window size k, and you need to return an array of distinct element counts for every window of that size as it slides across. So if you start with something like [2, 3, 2, 4, 5, 3, 4] and k=4, the first window gives you 3 distinct values, then 4, then 4, then 3. He wanted the full solution, not just brute force.

My approach was a sliding window with a frequency map. When you add the incoming element, you increment its count and if it just went from 0 to 1, you bump your distinct counter. When you drop the outgoing element, you decrement and if it hits 0, you subtract from the counter. Clean O(n) solution, explained the invariant as I went.

Follow-up 1: what if k isn't fixed and changes between each window step? Walked him through resizing the window incrementally and maintaining the same map.

Follow-up 2: can you do it without extra space? Honestly this one caught me off guard. We talked through a few options and I sketched a partial approach but I don't think I nailed it fully.

Submitted the result, waiting to hear back. Back to grinding I guess in the meantime.

YOE: 3, currently at a Series B startup

Anyone else hit this exact problem in MAI rounds recently?

15772.5k

Replies (5)

avatar
siyuanwangJun 27, 2026

Got a sliding window problem in my MAI screen too, different variant though. Mine was about max sum in a subarray of size k. Seems like they like window problems for screens.

60
avatar
emilycho99Jun 27, 2026

What's the timeline like after the phone screen? Did they say when to expect a decision?

38
avatar
liangchen03Jun 28, 2026

Recruiter said 1-2 weeks but I've seen posts saying it can drag. I'm at day 5 right now, nothing yet.

70
avatar
User-nrh0hJun 27, 2026

MAI screens are deceptively BQ-heavy. I spent 90% of my prep on coding and got caught off-guard by the behavioral depth. Good luck, hope it goes your way.

33
avatar
pratikm88Jun 27, 2026

How deep did the BQ go on the cross-team question? Did he push on the outcome or more on your reasoning during the conflict?

28
avatar
liangchen03Jun 27, 2026

Both tbh. He first wanted me to explain my reasoning step by step, then asked specifically what the outcome was and how I measured success afterwards. Felt like he had a rubric.

54
avatar
devraj_kJun 27, 2026

For the in-place follow-up, I think the idea they're fishing for is encoding the frequency info into the original array values using sign manipulation or something similar. Still not clean but it's the angle.

16
No more replies