Join waitlist
Interview PrepCommunity question

Microsoft internship (on campus) - got the offer

Asked by Gayathri Menon 1 month ago 3 answers 22 votes

OA: 2 questions in 60 min, one string and one DP on grid.

Round 1: reverse linked list in groups of k. Then discussion on how I'd design an LRU cache (hashmap + doubly linked list), didn't have to write full code.

Round 2: validate BST. I first said inorder traversal, he asked for a different approach, did the min/max range one. Then 15 min on my project.

Round 3: mostly behavioural + find the duplicate number.

What I think helped: talking while coding and writing test cases before they asked.

3 answers

Divya Krishnan1 month agoMost voted4

congrats Gayathri!! 🎉

Gayathri Menon1 month agoMost voted4

@Riya implement it yourself once fully (leetcode 146). after that explaining it is easy

Riya Banerjee1 month ago2

how did you prepare the LRU part? that question scares me

Related questions

Go deeper

Want the full explanation, not just an answer?

Structured lessons on DSA, core CS, Java and interview skills, each ending in a quiz so you know it stuck.