MAI Copilot phone screen, Pending, sliding window problem + BQ
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?