FAANG interview questions with sample answers
Pick a company. Open a question. See a simple sample answer you can make your own.
Google scores four things: how you think, role knowledge, leadership, and "Googleyness". Source ↗
Google technical interview questions (20)
1
Design and implement a rate limiter (O(1) complexity challenged "at scale")
Sample answerI would use a token bucket. Each user gets a bucket with, say, 10 tokens. Every request uses one token, and tokens refill a little every second. If the bucket is empty, I block the request. I keep each user's tokens and last refill time in a hash map, so every check is O(1).
2
Find Median from Data Stream
Sample answerI keep two heaps. A max-heap holds the smaller half of the numbers, and a min-heap holds the bigger half. I keep their sizes almost equal. The median is the top of the bigger heap, or the average of both tops. Adding a number is O(log n) and getting the median is O(1).
3
Approximate the median of a stream of doubles with limited memory
Sample answerI can't store every number, so I use buckets. I split the value range into fixed buckets and only count how many numbers fall in each one. To find the median, I walk through the buckets until I pass half of the total count. The answer is close, not exact, but memory stays small. Smaller buckets give better accuracy.
4
Undirected acyclic graph, max 3 edges per node: find a root that makes it a binary tree (follow-up: nodes colored black/white)
Sample answerIn a binary tree, the root has at most 2 connections, and every other node has at most 3 (one parent and two children). So the root must be a node with 2 or fewer edges. I pick such a node and run DFS to check that every node has at most 2 children. For the color follow-up, I add the color rule as an extra check in the same DFS.
5
Grid of land and water: given a land cell, count the lakes inside that island
Sample answerFirst I run BFS from the given land cell to mark the whole island. Then I look at each group of water cells. A water group is a lake if it is fully surrounded by this island and never touches the edge of the map. I flood-fill each water group and count the ones that are closed in.
6
Simplify a string expression with +, - and one level of parentheses
Sample answerI go through the string once and keep a sign. When I see a minus right before a bracket, I flip the signs of everything inside it. I collect each term with its final sign and join them back. Since there is only one level of brackets, one pass with a sign flag is enough.
7
Advanced variant of LeetCode "Guess the Word"
Sample answerEach guess tells me how many letters match in the exact position. After a guess, I remove every word that would not give the same match count. I repeat until one word is left. To guess smarter, I choose the word that splits the remaining list most evenly.
8
Parse a chat log and return the top N most talkative users with word counts
Sample answerI read the file line by line, find the username, and count the words in that message. I add it to a hash map: user to total words. Then I use a min-heap of size N to get the top N users, which is faster than sorting everyone.
9
2D height map with two cities: find the highest cell for a water tower whose downhill-only pipes reach both
Sample answerWater only flows down or flat, so I think in reverse. I start BFS from each city and move only to cells that are the same height or higher. That gives all cells that can send water to city A, and all cells that can reach city B. Cells in both lists are valid, and I pick the highest one.
10
Given each person's free intervals, output every interval with the list of people free
Sample answerI turn each interval into two events: a person becomes free at the start and busy at the end. I sort all events by time. As I move through time, I keep a set of people who are free right now. Every time the set changes, I output the interval and the people in the set.
11
Given intervals and many queries, count the intervals containing each number (called thousands of times)
Sample answerSince queries come thousands of times, I prepare first. I sort all start points and all end points separately. For a number x, the answer is (starts less than or equal to x) minus (ends less than x). Each query is just two binary searches, so O(log n).
12
Longest chain of words where each word is a prefix of the next
Sample answerI put all words in a Trie. A chain where each word is a prefix of the next is a path in the Trie that passes through word endings. I run DFS on the Trie and count how many word endings I pass on each path. The biggest count is the answer.
13
HashMap warm-up, then a hard follow-up using HashMap + LRU
Sample answerA hash map gives fast O(1) lookup. For LRU, I add a doubly linked list. The most recently used item goes to the front. When the cache is full, I remove the item at the back. The map points to the list nodes, so get and put are both O(1).
14
Minimum moves for a bishop between two squares on an 8x8 board
Sample answerA bishop moves diagonally, so it always stays on the same color. If start and end are different colors, it's impossible. If it's the same square, 0 moves. If they're on the same diagonal, 1 move. Otherwise, it's always 2 moves. I can confirm this with BFS on the 8x8 board.
15
Kth smallest element across two sorted arrays
Sample answerThe easy way is to merge with two pointers until I reach k, which is O(k). The better way is binary search: I compare the (k/2)th element of each array, throw away the smaller half, and reduce k. That takes O(log k).
16
LFU Cache
Sample answerI keep three maps: key to value, key to how many times it was used, and use-count to a list of keys. I also track the smallest use-count. On get, I move the key to the next count list. When the cache is full, I remove the oldest key from the smallest count list. Everything is O(1).
17
Which is better, merge sort or quick sort? What is quick sort's worst case?
Sample answerNeither is always better. Merge sort is always O(n log n) and keeps equal items in order, but needs extra memory. Quick sort is usually faster in real life and sorts in place, but its worst case is O(n²). That happens when the pivot is always the smallest or biggest item, like sorted data with a bad pivot.
18
Worst-case lookup in a self-balancing BST vs a normal BST
Sample answerIn a self-balancing tree like AVL or Red-Black, the worst case is O(log n) because the tree stays short. In a normal BST, the worst case is O(n), because if I insert sorted numbers, the tree becomes one long line, like a linked list.
19
Worst-case and average-case insertion in a hash table
Sample answerOn average it's O(1): I hash the key and put it in its slot. The worst case is O(n), when many keys land in the same slot, or when the table is full and must resize and copy everything.
20
Unweighted graph shortest path: BFS or Dijkstra?
Sample answerBFS. When every edge costs the same, BFS finds the shortest path in O(V + E). Dijkstra also works, but it uses a priority queue and is slower for no gain. Dijkstra is for graphs where edges have different positive weights.
Google non-technical interview questions (20)
1
Tell me about yourself. Why Google?
Sample answerI'm [name]. I studied [subject] and worked [X years] in [field]. My biggest win was [one result with a number]. I want to join Google because products like Search and Maps help billions of people every day, and I want my work to reach that many people. This role uses my [main skill] directly.
Fill the highlighted blanks with your own true story.
2
Why Google, why this role, what can you bring to this role?
Sample answerI use Google products every day, and I like that Google makes decisions using data. I want this role because I enjoy helping businesses grow. I can bring [skill 1] and [skill 2]. For example, at [company], I [result with a number].
Fill the highlighted blanks with your own true story.
3
Why are you interested in this role?
Sample answerThis role mixes two things I enjoy: talking to clients and solving problems with data. In my last job, I did [similar task], and it was my favorite part. Here I can do it at a much bigger scale and keep learning.
Fill the highlighted blanks with your own true story.
4
Do you have any issues with taking on a more entry-level role?
Sample answerNo, I'm happy with it. I'd rather start at a company where I can learn a lot. I'm confident I'll grow quickly if I do strong work. Right now, learning and impact matter more to me than the title.
5
Explain a time you worked with a difficult customer
Sample answerA customer was angry because [problem]. First, I listened without interrupting. I said sorry and repeated the problem back, so they knew I understood. Then I [action] and told them exactly when they'd get an update. In the end, they [result, like stayed with us]. I learned that people calm down when they feel heard.
Fill the highlighted blanks with your own true story.
6
How would you describe Gmail to a non-tech-savvy person?
Sample answerGmail is like a post office inside your phone. Instead of paper letters, you send messages that arrive in seconds. Your inbox is your mailbox. You can attach photos, like putting them in an envelope. And it's free. You just need internet.
7
Tell me about a time you disagreed with a co-worker and how it was resolved
Sample answerA teammate wanted [plan A], but I thought [plan B] was better. I didn't argue in front of everyone. I asked to talk one-on-one, listened to their reasons, then showed my data. We agreed to test both for a week. [Plan] worked better, so we used it. We stayed friendly because we focused on the result, not on who was right.
Fill the highlighted blanks with your own true story.
8
What was a time you completely satisfied a client?
Sample answerA client needed [X] in a short time. I asked questions to find what they really needed, then I [action]. I delivered on time and added [small extra]. They told me [feedback] and gave us more work later.
Fill the highlighted blanks with your own true story.
9
Tell me about a time you worked with data
Sample answerSales were dropping and nobody knew why. I put the sales data in a spreadsheet and grouped it by [region or product]. I found that [finding]. I showed my manager a simple chart, and we [action]. After that, sales went up by [X%].
Fill the highlighted blanks with your own true story.
10
Tell me about a time you had to go through change management
Sample answerMy team moved to a new [tool]. Many people were worried. I learned it early, made a one-page guide, and helped teammates one by one. I also passed their problems to the manager so we could fix them. In [X weeks], everyone was using it, and work got faster.
Fill the highlighted blanks with your own true story.
11
How would you manage a new task when your manager takes you off an ongoing one?
Sample answerFirst, I'd ask about the new task's priority and deadline. Then I'd write notes on where I stopped on the old task, so it's easy to restart or hand over. I'd agree with my manager on when to go back to it. Then I'd give full focus to the new task.
12
You will manage a book of 50 SMB customers: how do you prioritize the accounts?
Sample answerI'd put them into three groups. Group 1: big spenders or high growth chance, I talk to them often. Group 2: medium accounts, regular check-ins. Group 3: small or stable accounts, I support them with emails and self-help tools. I'd review the groups every month, because things change.
13
How would you prioritize a book of business?
Sample answerI'd rank clients by two things: how much revenue they bring now, and how much they could grow. Clients high on both get most of my time. I'd also watch for clients who might leave and help them early. I'd check this list every week.
14
How would you increase quota by 40%?
Sample answerI'd use three levers. One: grow current clients by finding products they don't use yet. Two: win new clients who look like my best ones. Three: stop losing clients by fixing problems early. I'd set weekly targets for each one. A 40% jump usually needs all three, not just one.
15
Role play: sell the product
Sample answerFirst I'd ask the customer questions: What's your goal? What's your biggest problem? Then I'd show how the product fixes that exact problem, with one simple example. I'd answer doubts calmly. I'd end by asking for a small next step, like a free trial.
16
How many people are on the internet right now? (estimation)
Sample answerThe world has about 8 billion people. I'd guess about two-thirds use the internet, so around 5 to 5.5 billion. Rich countries are near 90%, poorer countries are lower, so that average feels right. At any one moment, maybe a quarter of them are online, so about 1 to 1.5 billion right now.
Tip: The exact number doesn't matter. Explaining your steps clearly is what they check.
17
What 3rd party tools do you use?
Sample answerI use [Google Sheets or Excel] for data, [Slack or Teams] to talk with my team, [Trello or Asana] to track tasks, and [Canva] for quick designs. For example, I built a tracker in Sheets that saved my team [X hours] every week.
Fill the highlighted blanks with your own true story.
18
Organize the grand opening of a new Google office: how would you plan it?
Sample answerFirst I'd ask: What's the goal, budget, date, and who's coming? Then I'd plan the guest list, venue, food, speakers, and media. I'd give each part one owner and a deadline. On the day, I'd keep a backup plan for problems like rain or late speakers. After the event, I'd check success: how many came, media coverage, and guest feedback.
19
How would you convince a GCP customer to expand their cloud services?
Sample answerFirst I'd learn how they use the cloud today and what problems they have. Then I'd show one clear win with numbers, like saving money or adding AI features. I'd suggest a small trial project so the risk is low. If the trial works, they'll want to expand.
20
How would you measure the effectiveness of our employee referral program?
Sample answerI'd check the numbers: how many referrals come in, how many get hired, how long they stay, and how well they perform compared to other hires. I'd also check the cost per hire. If referral hires stay longer and cost less, the program is working.
Amazon checks every answer against its 16 Leadership Principles. Use the STAR order. Source ↗
Amazon technical interview questions (20)
1
Given a sorted dictionary of an alien language, find the order of its characters
Sample answerI compare each pair of neighboring words. The first letter that is different tells me one letter comes before another. That becomes an arrow in a graph. Then I do a topological sort to get the letter order. If there's a loop, no valid order exists.
2
Pick the best locker for an incoming package from an array of lockers
Sample answerI keep free lockers grouped by size. For each package, I choose the smallest free locker it fits in, so big lockers stay free for big packages. With one list per size, finding a locker is very fast.
3
Given packages and their dependencies, find a valid build order
Sample answerThis is a topological sort. I start with packages that have no dependencies and build them first. Then I remove them and see which packages are now free to build. I repeat. If some packages are left but none can start, there's a loop, so no valid order.
4
Two Sum: return the indices of two numbers that add up to a target
Sample answerI go through the array once. For each number, I check if (target minus this number) is already in my hash map. If yes, I return both indexes. If not, I save this number and its index. That's O(n).
5
Gas Station: find the start index to complete a circular route
Sample answerIf total gas is less than total cost, the answer is -1. Otherwise, I walk through the stations and track the fuel in the tank. If the tank goes below zero, I can't start from any station so far, so I restart from the next station. One pass, O(n).
6
Best Time to Buy and Sell Stock (one transaction)
Sample answerI track the lowest price seen so far. Each day, profit = today's price minus the lowest price. I keep the biggest profit. One pass, O(n).
7
Sum of all subarray ranges
Sample answerThe easy way: for every start point, extend to the right and track min and max. That's O(n²). The faster way: total = (sum of all subarray maxes) minus (sum of all subarray mins). With a monotonic stack, I find how many subarrays each number is the max or min of. That's O(n).
8
Search for an element in a sorted array of infinite length
Sample answerI don't know the length, so I first find a range. I check index 1, 2, 4, 8, and so on until the value is bigger than the target. Then I do binary search inside that range. O(log n).
9
A bus with capacity c and passenger trips: can everyone be dropped off? (Car Pooling)
Sample answerI turn each trip into two events: passengers get on at pickup, get off at drop. I sort the events by location, with drop-offs first at the same spot. I walk through and keep a running count. If the count ever goes above capacity, I return false.
10
Remove duplicate nodes from a linked list
Sample answerIf the list is sorted, I compare each node with the next one and skip duplicates. If it's not sorted, I use a hash set of values I've seen and remove any node already in the set. O(n).
11
Reverse a linked list
Sample answerI use three pointers: previous, current, and next. For each node, I save next, point current back to previous, then move all pointers one step forward. At the end, previous is the new head. O(n) time, O(1) extra space.
12
Add two numbers stored as reversed-digit linked lists
Sample answerI walk both lists together and add the two digits plus the carry. I make a new node with (sum % 10) and set carry = sum / 10. If there's still a carry at the end, I add one more node.
13
Return all concatenated words in a word list
Sample answerI put all words in a set. For each word, I check if it can be split into two or more other words using DP: dp[i] is true if the first i letters can be split into known words. I sort by length so smaller words are ready first.
14
Longest palindromic substring
Sample answerEvery palindrome has a center. I try each center, on a letter and between two letters, and expand left and right while the letters match. I keep the longest one. O(n²) time, O(1) space.
15
Group anagrams
Sample answerAnagrams have the same letters, so if I sort each word's letters, anagrams look the same. I use the sorted word as a key in a hash map and add the word to that group.
16
Longest substring without repeating characters
Sample answerI use a sliding window. I move the right end forward. If a letter repeats, I move the left end just past where that letter was last seen. I store last positions in a hash map and track the biggest window. O(n).
17
Number of islands in a land/water grid
Sample answerI check every cell. When I find land I haven't visited, I add 1 to the count and use DFS or BFS to mark that whole island as visited. O(rows × columns).
18
Word Ladder: the shortest change chain from a start word to a target word
Sample answerI use BFS because every step costs the same. From the start word, I try changing each letter to a to z. If the new word is in the dictionary and not visited, I add it to the queue. The first time I reach the target, that's the shortest chain.
19
Binary tree maximum path sum
Sample answerI use DFS. At each node, I get the best downward path from the left and right child, using 0 if it's negative. A path through this node = node + left + right, and I update my global best. I return node + the bigger of left or right to the parent.
20
Print a binary tree in zig-zag order
Sample answerI do level-by-level BFS with a queue. For each level, I collect the values, and I flip the direction every level: left to right, then right to left. I just reverse the list on every other level.
Amazon non-technical interview questions (20)
Tip: Amazon interviewers ask “Why?” and “What exactly did you do?” a lot. Know the small details of your story.
1
Tell me about a time you faced a problem that had a number of possible solutions
Sample answerOur deliveries were often late. I saw three fixes: hire more people, change the route plan, or buy new software. I compared cost, speed, and risk. Changing the route plan was cheapest and fastest, so we tried it first. Late deliveries dropped by [X%] in one month.
2
When did you take a risk, make a mistake, or fail?
Sample answerI once sent a report with a wrong number. When I found it, I told my manager right away and sent the correct version. Then I made a checklist to double-check numbers. It hasn't happened again. I learned that owning a mistake quickly is better than hiding it.
3
Describe a time you took the lead on a project
Sample answerOur team had no clear plan for [project]. I offered to lead. I split the work, set weekly goals, and ran short check-ins. When someone got stuck, I helped remove the problem. We finished on time and got [result].
Fill the highlighted blanks with your own true story.
4
What did you do when you needed to motivate a group or promote collaboration on a project?
Sample answerMy team was tired after a hard month. I asked each person what was bothering them. I explained the bigger goal, broke the work into small wins, and praised good work in front of everyone. Energy came back, and we hit [target].
Fill the highlighted blanks with your own true story.
5
How have you used data to develop a strategy?
Sample answerCustomer complaints were rising. I collected the complaint data and grouped it by type. 60% were about [one issue]. So instead of fixing everything, we fixed that one first. Complaints dropped by [X%].
Fill the highlighted blanks with your own true story.
6
Tell me about a time you had to deal with a difficult customer
Sample answerA customer was upset because their order was wrong. I listened, said sorry, and fixed it the same day. I also followed up the next week to check they were happy. They stayed with us. Keeping their trust mattered more than one order.
7
Describe a time a customer asked for one thing but you knew they needed something else
Sample answerA customer asked for a faster laptop. When I asked how they use it, I learned they mainly needed more space for photos. I suggested an external drive, which was cheaper and solved the real problem. They were very happy and came back later.
8
Tell me about a time you did something that was not in your job description
Sample answerOur team's files were messy, and people wasted time searching. It wasn't my job, but I made a simple folder system and a short guide. It saved everyone around [X] minutes a day.
9
How would you make Amazon.com better?
Sample answerI'd make reviews easier to trust. Right now, it's hard to know which reviews are real and helpful. I'd show a short summary of the top good and bad points, and highlight reviews from verified buyers with photos. Customers would decide faster and return fewer items.
10
Tell me about a time you had to make an urgent decision without data
Sample answerOur website went down during a sale. There was no time to study it. I decided to switch to the backup server right away, because waiting would lose more sales. It worked, and we found the real cause later. In that moment, speed mattered more than a perfect answer.
11
Tell me about a time you had to work with incomplete information
Sample answerI had to plan stock for a new product with no past sales. I used data from a similar product, asked the sales team, and ordered a small amount first. Then I checked sales every week and adjusted. We didn't run out, and we didn't overstock.
12
Tell me about a time you re-designed a process, and why
Sample answerApprovals took 5 days because every request needed 3 people. I mapped the steps and saw small requests didn't need 3 approvals. I suggested a rule: small requests need only one. Approval time dropped to 1 day.
13
Tell me how you deal with ambiguity
Sample answerWhen things are unclear, I write down what I know and what I don't. I ask a few key questions. Then I take a small, safe first step and learn from it. I update my plan as more information comes in.
14
Tell me about a time you had to handle pressure
Sample answerWe had a big client demo in two days, and a key feature broke. I stayed calm and listed what must work and what could wait. I split the tasks with my team. The demo went well, and we won the deal.
15
Tell me about a situation where you did not hit your goal
Sample answerMy target was [X], and I reached about 80%. I checked why and saw I spent too much time on small clients. The next quarter, I focused on bigger clients and reached [110%]. Missing the goal taught me to plan better.
Fill the highlighted blanks with your own true story.
16
Tell me about your most significant accomplishment and why it was significant
Sample answerMy proudest work was [project]. It mattered because [impact with a number], and I had never done anything like it before. Along the way, I learned [skill].
Fill the highlighted blanks with your own true story.
17
Tell me about a time you challenged the status quo
Sample answerOur team made the same report by hand every week. I asked, 'Why don't we automate this?' Some people were unsure. I built a simple automatic sheet and showed it saved 4 hours a week. The team started using it.
18
Tell me a piece of difficult feedback you received and how you handled it
Sample answerMy manager told me my emails were too long and unclear. It hurt a little, but he was right. I started putting the main point first and keeping emails short. Later, he said my updates were much clearer.
19
A co-worker always arrives late to a recurring meeting. What would you do?
Sample answerI'd first talk to them privately and kindly, and ask if something is going on. Maybe they have another meeting at the same time. We could move the meeting or I could share notes. I'd involve the manager only if it keeps hurting the team.
20
Tell me about a time you disagreed with your manager
Sample answerMy manager wanted to launch a feature quickly. I worried it had bugs that would upset customers. I showed him the test results and suggested a one-week delay. He agreed to a small test first, and we found and fixed two bugs. Once we decided, I fully supported the plan.
Meta's first screen scores communication, problem-solving, coding and checking your own work. Source ↗
Meta technical interview questions (20)
1
Longest repeating substring with replacement
Sample answerI use a sliding window and count the letters inside it. I also track the count of the most common letter. If (window size minus that count) is more than k, I shrink from the left. I keep the biggest valid window. O(n).
2
Number of islands in a 2D array
Sample answerI check every cell. When I find unvisited land, I add 1 to the count and use DFS to mark the whole island as visited. O(rows × columns).
3
Evaluate an arithmetic string with numbers, + and *
Sample answerMultiplication goes first. I keep a 'current term'. When I see *, I multiply into the current term. When I see +, I add the term to the total and start a new term. At the end, I add the last term.
4
Product of array except self
Sample answerNo division allowed. First pass, left to right: store the product of everything on the left. Second pass, right to left: multiply by the product of everything on the right. O(n).
5
Valid palindrome after deleting at most one character
Sample answerI use two pointers from both ends. When the letters don't match, I try skipping the left letter or the right letter, and check if the rest is a palindrome. O(n).
6
Next permutation
Sample answerFrom the right, I find the first number that is smaller than the one after it. Then, from the right, I find the first number bigger than it and swap them. Finally, I reverse everything after that spot. If no such number exists, I reverse the whole array.
7
Minimum window substring in O(n)
Sample answerSliding window with letter counts. I grow the right side until the window has all letters of T. Then I shrink from the left as much as I can while it's still valid, and save the smallest window. O(n).
8
Group anagrams
Sample answerI sort the letters of each word and use that as a key in a hash map. All anagrams get the same key, so they land in the same group.
9
Valid parentheses
Sample answerI use a stack. I push every opening bracket. For a closing bracket, the top of the stack must be its matching opening bracket, so I pop it. At the end, the stack must be empty.
10
3Sum: all unique triplets that sum to zero
Sample answerI sort the array. I fix one number, then use two pointers on the rest to find pairs that add up to minus that number. I skip duplicates. O(n²).
11
Lowest common ancestor in a BST
Sample answerI start at the root. If both values are smaller, I go left. If both are bigger, I go right. Otherwise, the current node is the answer.
12
Range sum of a BST between L and R
Sample answerDFS. If the node is less than L, I only go right. If it's more than R, I only go left. If it's in range, I add it and go both ways.
13
Convert a binary tree to a circular doubly linked list in place
Sample answerAn in-order traversal visits nodes in sorted order. As I visit each node, I link the previous node to it in both directions. At the end, I connect the last node to the first to make a circle.
14
Diameter of a binary tree
Sample answerDFS returns each node's height. At each node, left height + right height is the longest path through it, and I keep the biggest one. O(n).
15
Serialize and deserialize a binary tree
Sample answerI do a preorder traversal and write 'null' for empty children, separated by commas. To rebuild, I read the values in the same order and create nodes recursively.
16
Clone a connected undirected graph
Sample answerI use BFS with a hash map from each old node to its new copy. I create each copy once, then connect its neighbors using the map.
17
Check whether a graph is bipartite
Sample answerI try to color every node with 2 colors using BFS. Neighbors must have opposite colors. If two neighbors ever have the same color, it's not bipartite. I check every separate part of the graph.
18
K closest points to the origin
Sample answerI keep a max-heap of size K, sorted by distance (x² + y², no square root needed). If a new point is closer than the top, I swap it in. O(n log K).
19
Minimum number of meeting rooms needed
Sample answerI sort meetings by start time and keep a min-heap of end times. For each meeting, if the earliest end time is before or at its start, a room is free, so I pop it. Then I push this meeting's end time. The heap size at the end is the number of rooms.
20
Copy a linked list with random pointers
Sample answerI use a hash map from old node to new node. First pass: create all the copies. Second pass: set next and random pointers using the map. O(n).
Meta non-technical interview questions (20)
1
Why Meta?
Sample answerMeta connects over 3 billion people through Facebook, Instagram, and WhatsApp. I love that small businesses use these apps to find customers. In this role, I can help them grow, and that's the kind of impact I want.
2
Tell me 3 things that are not on your resume
Sample answerOne: I [hobby, like run a small YouTube channel], so I understand content and ads from the creator side. Two: I [taught or volunteered], so I can explain things simply. Three: I'm very curious. I learn a new skill every few months, like [example].
Fill the highlighted blanks with your own true story.
3
What is your favorite Meta product and why?
Sample answerWhatsApp. It's so simple that even my grandparents use it. It works on slow internet too. And businesses use it to talk to customers directly. One thing I'd improve is [your idea].
Fill the highlighted blanks with your own true story.
4
What is Facebook's business model?
Sample answerMeta makes most of its money from ads. Facebook and Instagram are free for users. Businesses pay to show ads to the right people, based on things like interests and location. More users and better targeting means more ad money.
5
What is the difference between Facebook advertising and Google AdWords?
Sample answerGoogle shows ads when people search for something, so they already want it. Facebook shows ads based on who people are and what they like, even if they're not searching. So Google is great for people ready to buy, and Facebook is great for helping people discover new things.
6
What is your plan for your first six months on the job?
Sample answerMonths 1 and 2: learn the products, tools, and my clients, and listen a lot. Months 3 and 4: find quick wins for clients and build trust. Months 5 and 6: work on bigger growth plans and hit my targets.
7
Sell me this pen
Sample answerBefore I sell it, can I ask: when did you last use a pen? What for? [Listen.] You said you sign important papers. This pen writes smoothly and never smudges, so your signature always looks clean and professional. Would you like to try it?
Tip: Ask questions first. Selling is about their need, not the pen.
Fill the highlighted blanks with your own true story.
8
Estimate the revenue of Disneyland
Sample answerLet me guess about 18 million visitors a year. Each person spends maybe $150 on the ticket and $100 on food and gifts, so about $250. 18 million times $250 is about $4.5 billion. I'd adjust this if I knew the real visitor number.
Tip: Say every step out loud. The method matters more than the final number.
9
If your boss could give any negative feedback about you, what would they say?
Sample answerMy boss might say I sometimes take too much work on myself instead of asking for help. I've been fixing this by sharing tasks earlier and asking for help when I need it.
10
Name a time you had to adapt your own personality to deal with a colleague
Sample answerI'm quick and direct, but I worked with someone who liked to think slowly and carefully. I started sending her information before meetings and gave her time to reply. Our work got better, because she caught details I missed.
11
How would you pitch Facebook to a client?
Sample answerYour customers spend hours on Facebook and Instagram every day. With Meta ads, you can show your product only to people likely to buy, by age, location, and interest. You can start small, with a small daily budget, and see clear results.
12
What would you do if you got 75 new clients on your first day?
Sample answerI wouldn't panic. I'd sort them by size and urgency. I'd send a short welcome email to everyone, then call the biggest ones first. For the rest, I'd use group emails and online guides. I'd also ask my team which accounts need help right now.
13
How would you communicate with 50,000 clients you can't speak to one by one?
Sample answerI can't call everyone, so I'd use tools that scale: email newsletters, webinars, help guides, and automatic messages. I'd group clients by type so each message feels relevant. Then I'd see who opens and replies, to find who needs personal help.
14
Tell me about a time you had a positive call with a client
Sample answerA client was unhappy with poor ad results. On the call, I asked questions and found their ad was targeting the wrong city. We fixed it together while talking. A week later, their sales doubled, and they thanked me.
15
How would you manage hundreds of accounts? Walk me through your process.
Sample answerI'd use levels. Top accounts get personal calls, middle accounts get regular check-ins, and small accounts get automatic support. I'd use a CRM and a dashboard to see who needs attention, and review it every week.
16
How would you manage ambiguity in our objectives? What would you prioritize?
Sample answerFirst, I'd ask questions to make the goals clearer. If it's still unclear, I'd choose goals that clearly help the business, like revenue and client happiness, and agree on them with my manager. Then I'd start small and adjust.
17
Why do you want to work in Marketing at Facebook?
Sample answerFacebook is where marketing really happens for millions of businesses. I love seeing a good idea turn into real results. Here, I'd learn from the best data and tools in marketing.
18
What is your biggest accomplishment?
Sample answerMy biggest accomplishment was [project]. I [your action], and the result was [number]. I'm proud of it because [reason, like I had never done it before].
Fill the highlighted blanks with your own true story.
19
What is your greatest weakness? When did you last learn something new?
Sample answerMy weakness was saying yes to too many tasks. Now I plan my week and politely say no when I need to. The last new thing I learned was [skill, like basic SQL] from free online videos, and I used it to [result].
Fill the highlighted blanks with your own true story.
20
10-minute pitch: why Facebook marketing matters for a potential client
Sample answerI'd use five simple parts: (1) the client's goal, (2) the problem they face, (3) how Facebook and Instagram solve it, with one example, (4) a simple plan and budget, and (5) how we'll measure success. Simple slides, and end with one clear next step.
Apple looks for collaboration, creativity, curiosity and real expertise. Each team runs its own loop. Source ↗
Apple technical interview questions (20)
1
Write a doubly linked list in C on the whiteboard, with coding best practices
Sample answerEach node has data, a next pointer, and a prev pointer. I write functions to create a node, add at the front or back, delete a node, and free the whole list. For good practice, I check if malloc returns NULL, update both pointers every time, and free memory to avoid leaks.
2
Handle abbreviations of an array of strings (like US state abbreviations)
Sample answerFirst I'd ask: must every abbreviation be unique? A simple plan: start with the first letter or two. If two words get the same abbreviation, add more letters until each one is unique. A hash map helps me find clashes quickly.
3
Implement atoi
Sample answerI skip spaces, read an optional + or - sign, then read digits one by one: result = result × 10 + digit. I stop at the first non-digit. I also check for overflow and cap the number at the integer limits.
4
In Objective-C, return the first repeated integer in an array in O(n)
Sample answerI go through the array with a hash set. The first number that's already in the set is the answer. O(n) time.
5
Implement a stack with a getMinimum() function
Sample answerI use two stacks: a normal one and a 'min' stack. When I push, I also push the smaller of (new value, current min) onto the min stack. When I pop, I pop both. getMin just reads the top of the min stack. Everything is O(1).
6
Implement a queue using an array or a linked list
Sample answerWith a linked list, I keep head and tail pointers. I add at the tail and remove from the head. With an array, I use a circular buffer: front and rear indexes that wrap around using modulo.
7
Collapse a binary search tree into a sorted list
Sample answerAn in-order traversal (left, node, right) visits a BST in sorted order. I just add each value to the list as I visit.
8
Reverse the bits of a 32-bit integer
Sample answerI loop 32 times. Each time, I take the last bit of n (n & 1), shift my result left and add that bit, then shift n right.
9
Longest substring in a string
Sample answerI'd confirm the exact rule first. If it's 'without repeating letters', I use a sliding window: move the right side forward, and when a letter repeats, move the left side past its last position. I track the longest window. O(n).
10
Implement an iterator over a BST in ascending order
Sample answerI use a stack. At the start, I push all left children from the root. next() pops the top, then pushes all left children of its right child. hasNext() checks if the stack is not empty. On average, each call is O(1).
11
Fibonacci series
Sample answerEach number is the sum of the two before it. Simple recursion is very slow, O(2ⁿ). So I use a loop with two variables. That's O(n) time and O(1) space.
12
Reverse a linked list
Sample answerThree pointers: previous, current, next. For each node, save next, point current back to previous, then move forward. At the end, previous is the new head.
13
Bitwise AND of all numbers in a range (a, b)
Sample answerI shift both numbers right until they're equal, and count the shifts. Then I shift that value back left by the same count. That keeps the common starting bits, and everything after becomes 0.
14
Return the next letter in alphabetical order, in cyclic fashion
Sample answerIf the letters are sorted, I binary search for the first letter bigger than the target. If none is bigger, I wrap around and return the first letter.
15
Build an LRU cache yourself using no data structure other than lists
Sample answerI keep one list of [key, value] pairs. On get, I find the key and move it to the end, because it's now the most recent. On put, if the key exists I update and move it to the end. If the list is full, I remove the first item, the least recent. Without a hash map, each step is O(n), and I'd mention that trade-off.
16
Merge two sorted linked lists
Sample answerI use a dummy starting node. I compare the two heads, attach the smaller one, and move forward. When one list ends, I attach the rest of the other list.
17
What is a binary tree?
Sample answerA binary tree is a structure where each node has at most two children, called left and right. The top node is the root. It's like a family tree where every parent has up to two kids.
18
Design an API and code it in Java
Sample answerFirst I'd ask what the API must do and who uses it. Then I'd define clear methods: inputs, outputs, and errors. In Java, I'd write an interface, a class that implements it, and handle bad input with exceptions. I'd keep it simple and easy to test.
19
Explain one of your college coding projects and answer design questions about it
Sample answerI built [project], which does [one line]. I used [technology] because [reason]. The hardest part was [problem], and I solved it by [action]. If I did it again, I'd [improvement].
Fill the highlighted blanks with your own true story.
20
How do you ensure quality and performance in your code?
Sample answerI write small, clear functions and test them with unit tests, including edge cases. I ask teammates to review my code. For speed, I measure first with a profiler, then fix the slowest part, instead of guessing.
Apple non-technical interview questions (20)
1
What is your motivation to work at Apple?
Sample answerI've used Apple products for years, and I love how simple they are. I want to help customers feel that same joy. Apple cares a lot about quality and people, and I want to work somewhere like that.
2
Tell me about a time when a result exceeded your expectations
Sample answerI set a goal to [sell X or help Y customers] in a month. I learned the products really well and focused on listening to customers. I finished at [higher number], beating my goal by [X%].
Fill the highlighted blanks with your own true story.
3
How do you prefer to work, alone or in a group?
Sample answerBoth. I like working alone when I need focus, like learning a new product. But I enjoy teams for solving problems, because others have ideas I don't. I adjust to what the task needs.
4
Which Apple products do you use, what numbers did you hit in past jobs, and how did you handle customers new to Apple?
Sample answerI use an iPhone and a MacBook every day. In my last job, I was measured on [sales or customer satisfaction] and reached [result]. With customers new to Apple, I go slowly, ask what they want to do, and show them one simple thing at a time.
Fill the highlighted blanks with your own true story.
5
Explain to a non-technical customer the difference between RAM and a hard drive
Sample answerThink of a kitchen. The hard drive is the fridge: it keeps all your food, even when the power is off. RAM is the kitchen counter: it holds what you're cooking right now. A bigger counter lets you cook more things at once. When you switch off the computer, the counter is cleared, but the fridge keeps everything.
6
What would you do if, minutes before your shift, your computer would not turn on?
Sample answerI'd stay calm and tell my team lead right away so someone can cover my first calls. Then I'd try quick fixes like checking the power and restarting. If it still doesn't work, I'd follow the backup plan and contact IT support.
7
What was the last issue with your own device that you troubleshot?
Sample answerMy iPhone was slow because storage was full. I checked Settings, then Storage, and found old videos taking space. I moved them to iCloud and deleted apps I didn't use. The phone became fast again.
8
What does customer service mean to you?
Sample answerIt means making the customer feel heard and leaving them happier than when they came. It's not only fixing the problem. It's also how they feel after talking to you.
9
A good friend at work did something bad for the company. What will you do?
Sample answerEven if she's my friend, I'd do the right thing. First, I'd talk to her privately and encourage her to fix it or report it herself. If she doesn't, I'd tell my manager. At work, honesty matters more than friendship.
10
How do you quickly build a customer's confidence that you can fix their issue?
Sample answerI repeat their problem back, so they know I understand. I speak calmly and tell them the steps I'll take. Getting one small thing fixed early also helps them trust me.
11
Have you ever fixed your Apple device or someone else's?
Sample answerYes. My mother's iPad wouldn't connect to Wi-Fi. I restarted the router, then told the iPad to forget the network and joined again. It worked. I enjoy solving small problems like that.
12
Tell me about your past customer service experience. Can you work weekends?
Sample answerI have [X years] in [customer-facing job], helping about [N] customers a day. Yes, I can work weekends.
Tip: Answer the availability question honestly. Saying yes and then refusing later causes bigger problems.
Fill the highlighted blanks with your own true story.
13
When did you first use an Apple product, and what did you think of it?
Sample answerMy first Apple product was [an iPod or iPhone] in [year]. I was surprised I didn't need a manual. It just worked. That simple design is still what I love most.
Fill the highlighted blanks with your own true story.
14
What three words would you use to describe Apple's products?
Sample answerSimple, beautiful, and reliable.
15
What Apple product would you be?
Sample answerI'd be the iPhone: dependable every day, easy to talk to, and always getting better with updates, just like I keep learning.
16
What does success mean to you?
Sample answerSuccess means doing work I'm proud of and helping others along the way. If a customer or teammate is better off because of me at the end of the day, that's success.
17
Tell me about a time when you felt appreciated at work
Sample answerI stayed late to help a teammate finish an urgent order. The next day, my manager thanked me in front of the team. It felt great, and it showed me that helping others gets noticed.
18
Tell me about a personal challenge: who was involved and how you overcame it
Sample answerIn college, I worked part-time while studying. Managing time was hard. I made a strict weekly plan and asked my teachers for help when I needed it. I passed with good marks and learned real time management.
19
Tell me about a time you realized you made a mistake
Sample answerI gave a customer the wrong return date. When I noticed, I called them back, said sorry, and gave the correct information. Now I always double-check before I answer.
20
Where do you want to be in five years?
Sample answerIn five years, I see myself as an expert in this area and maybe leading a small team. I want to keep growing here and take on more responsibility.
Netflix checks culture fit from the first call. The recruiter sends the culture memo before it — read it. Source ↗
Netflix technical interview questions (20)
Tip: Netflix interviewers often add new rules halfway through a problem. Write clean, simple code that is easy to change.
1
Implement a rate limiter
Sample answerI'd ask first: per user or global? How many requests per minute? Then I'd use a token bucket: each user has tokens that refill over time, and each request uses one. If no tokens are left, I block the request. It's O(1) per request. If we have many servers, I'd move the counters to Redis so all servers share them.
2
Parse a log file and identify error patterns
Sample answerI read the file line by line. I use a pattern (regex) to pull out the time, level, and message. I count ERROR lines by message type in a hash map. Then I return the most common errors, and maybe group them by time to spot sudden spikes.
3
Build a basic streaming pipeline that processes events in order
Sample answerEvents can arrive out of order, so each one needs a sequence number or timestamp. I keep a small waiting area, a min-heap. When the next expected event is at the top, I process it. Others wait. I'd ask how long we should wait for late events before moving on.
4
Implement an LRU cache
Sample answerA hash map plus a doubly linked list. The map finds items fast. The list keeps order: recently used items at the front. When full, I remove the item at the back. Get and put are both O(1).
5
Check if a string has valid parentheses
Sample answerI use a stack. I push opening brackets. For each closing bracket, the top of the stack must match it, so I pop. At the end, the stack must be empty.
6
Make a queue using stacks
Sample answerI use two stacks: 'in' and 'out'. Push goes to 'in'. For pop, if 'out' is empty, I move everything from 'in' to 'out', which flips the order. Then I pop from 'out'. Each item moves only once, so it's O(1) on average.
7
How would you implement a stack with another data structure?
Sample answerWith a linked list, it's easy: push and pop both happen at the head, O(1). With a queue, after adding a new item I rotate the queue so the new item comes to the front. Then pop just removes the front.
8
LeetCode 3 variant: longest run without repeats, using show names instead of characters
Sample answerSame idea as longest substring without repeating characters, but with show names. I use a sliding window and a hash map of each show's last position. When a show repeats, I move the left side past its last position. I track the longest window.
9
Homepage viewport: make sure no row or column on the first screen repeats a show
Sample answerI think of the first screen as a grid. For each cell, I pick the best show that isn't already used in that row or that column. I keep a set of used shows for each row and each column. If the top choice clashes, I take the next best one. It's a simple greedy fill, a bit like a Sudoku rule.
10
Given a JSON family tree, print all names (DFS)
Sample answerI write a function that prints the person's name, then calls itself for each child. That's DFS. I check if 'children' exists before looping.
11
getVideosWithLikes: combine a critical API and an optional API so the app survives if the optional one fails
Sample answerI call both APIs at the same time. If the videos call fails, I throw the error, because the page can't work without it. I wrap the likes call in try/catch. If it fails, I set likes to 0 or null. Then I join likes to videos using the video id.
12
Create your own Jest: implement a few testing methods
Sample answerI make a test(name, fn) function that runs fn inside try/catch and prints pass or fail. Then expect(value) returns an object with methods like toBe(x), which throws an error if the values are not equal.
13
Design a movie recommendation system
Sample answerI collect what users watch, rate, and skip. I use two simple ideas: people who watched the same things like similar movies, and movies with similar genres or actors go together. I compute recommendations ahead of time, store them in a fast cache, and update them daily. I measure success by watch time.
14
Design a payment system; design a service that validates and sorts TV series
Sample answerMain parts: an API to accept payments, a payment service that talks to the bank, and a database that records every payment. The most important rule: never charge twice. So every request gets a unique id, and if we see the same id again, we don't charge again. I log everything and retry safely if the bank is slow.
15
Design a password reset system (and how it applies at Netflix)
Sample answerThe user enters their email. I create a random one-time token, save a hashed copy with a short expiry like 15 minutes, and email a link. When they click it, I check the token, let them set a new password, then delete the token. I don't reveal whether the email exists, and I limit how many requests one person can make.
16
Design an unsubscribe flow for a website
Sample answerThe email has a link with a signed token, so no login is needed. Clicking it opens a page that confirms the unsubscribe. I update the user's setting in the database, and every email system checks that setting before sending. Optionally, I ask why they're leaving.
17
Design a service that shows metrics to content creators
Sample answerViewing events go into a queue like Kafka. A job adds them up every hour by title and country. Results go into a fast analytics database. An API shows each creator only their own data on a dashboard.
18
Design Netflix's content delivery network
Sample answerI put copies of popular videos on servers close to users, inside internet providers' buildings. When someone presses play, the video comes from the nearest server, so it starts fast. Popular shows are copied to these servers at night, when the internet is less busy.
19
Design a system to handle video uploads at scale
Sample answerI upload big files in small chunks, so the upload can continue if the internet breaks. The raw file goes to cloud storage. A queue tells workers to convert the video into many sizes and qualities. The finished files are saved and sent out to the delivery servers.
20
Design a notification system for a global streaming platform
Sample answerA service receives 'send notification' requests and puts them in a queue. Workers send them by push, email, or SMS. I respect each user's settings and time zone, retry failures, and make sure nobody gets the same message twice.
Netflix non-technical interview questions (20)
Tip: Read the Netflix culture memo before the interview. Almost every round asks about it.
1
Why did you choose to work for Netflix?
Sample answerI like that Netflix trusts people and gives them freedom, as the culture memo says. I also admire how Netflix brings stories from countries like India to the whole world. I want to work where great results matter more than rules.
2
What did you think about Netflix's culture memo?
Sample answerI like that it's honest and clear. My favorite idea is 'context, not control': managers explain the goal, and people decide how to reach it. I work best that way. I also like that people give each other honest feedback.
3
Which part of the culture memo resonates least, or would be the hardest adjustment?
Sample answerThe very direct, real-time feedback. My habit is to wait for the 'right moment' to say something hard. I know that waiting can make problems bigger, so I'm practicing saying things sooner, kindly but directly.
Tip: Give a real answer. Saying “I agree with everything” sounds fake.
4
Tell me something I can't find on your resume, LinkedIn, or online
Sample answer[A true personal fact, like 'I taught myself to cook for my whole family during college']. It taught me [quality, like patience and planning].
Fill the highlighted blanks with your own true story.
5
Tell me about your main achievements in your current role
Sample answerMy biggest achievement was [result with a number]. I personally [your action]. It mattered because [impact on the team or customers].
Fill the highlighted blanks with your own true story.
6
What does customer service mean to you?
Sample answerIt means solving the problem and also making the person feel cared for. A good call ends with the customer feeling relaxed, not just 'fixed'.
7
What is your favorite Netflix show or Netflix original?
Sample answerMy favorite is [show], because [one honest reason]. I also like how Netflix originals like [example] show stories from different countries.
Fill the highlighted blanks with your own true story.
8
What does Netflix mean to you?
Sample answerFor me, Netflix means relaxing after a long day and discovering stories from other cultures. It's also something my family watches together on weekends.
9
Describe a time you had an upset customer and how you handled it
Sample answerA customer was angry because they were charged twice. I listened, said sorry, checked their account, and set up the refund during the call. I told them exactly when the money would return. They thanked me at the end.
10
Live role play: a customer calls in with a problem. Handle the call.
Sample answerMy steps: greet warmly and say my name. Listen and repeat the problem. Ask simple questions. Explain the fix step by step. Confirm it's solved. End with, 'Is there anything else I can help you with?'
11
What Netflix marketing did you like?
Sample answerI liked how Netflix promoted [a show, like Stranger Things] with fun social media posts and real-world events. It made fans feel part of the show, not like they were watching an ad.
Fill the highlighted blanks with your own true story.
12
Do you know about Netflix?
Sample answerYes. Netflix is a streaming service in over 190 countries. It started by mailing DVDs, then moved to streaming, and now makes its own shows and films. It's also famous for its culture of freedom and responsibility.
13
Your greatest achievement, a time with a difficult coworker, and feedback you received
Sample answerAchievement: [result with a number]. Difficult coworker: we disagreed on [issue], so I talked to them privately, understood their side, and we found a middle path. Feedback: I was told [feedback], and I fixed it by [change].
Fill the highlighted blanks with your own true story.
14
Give an example of an HR process you managed and how it relates to Netflix culture
Sample answerI managed our new-joiner onboarding. I made it simpler: fewer forms, a buddy for every new hire, and a clear first-month plan. That fits 'context, not control', because new people get the context they need to work on their own.
15
How do you handle feedback?
Sample answerI listen fully, say thank you, and don't argue in the moment. Then I think about it and make a small change. Later, I check back with the person to see if it's better.
16
How do you convince someone to agree with you?
Sample answerFirst, I listen to understand their view. Then I share mine with facts and examples, linked to what they care about. If they still disagree, I stay open to their points. The goal is the best answer, not winning.
17
Would you need a visa for this position?
Sample answerI'd answer honestly: 'Yes, I would need [type of visa],' or 'No, I already have the right to work here.' Being clear early saves time for both sides.
Fill the highlighted blanks with your own true story.
18
How did you adapt to a new team and gain the trust of existing members?
Sample answerWhen I joined a new team, I listened more than I talked in the first few weeks. I asked how people liked to work and helped with small tasks. Keeping small promises built trust quickly.
19
Walk me through your work experience in similar positions
Sample answerI have [X years] in [similar role]. I handled [main duties] and achieved [result]. These match this job's key tasks, like [duty from job description].
Fill the highlighted blanks with your own true story.
20
If you were CEO of Netflix, what top three things would you do?
Sample answerOne: improve recommendations so people find something to watch faster. Two: grow in big markets like India with cheaper mobile plans and more local shows. Three: build new income like games and live events to keep members interested.
Microsoft asks behavioral questions in every round and listens for a growth mindset. Source ↗
Microsoft technical interview questions (20)
1
Given a list of meeting intervals, can one person attend all meetings?
Sample answerI sort the meetings by start time. If any meeting starts before the previous one ends, I return false. Otherwise true. O(n log n) because of sorting.
2
Given an array of words, find whether any 2 words have the same letters
Sample answerI'd first ask: same letters and same counts, like anagrams? If yes, I sort each word's letters to make a key and put keys in a hash set. If a key is already there, I return true.
3
Implement URL clean-up using a stack (in C)
Sample answerI split the path by '/'. I skip empty parts and '.'. For '..', I pop from the stack if it's not empty. Anything else, I push. Finally, I join the stack with '/' to get the clean path.
4
Check whether a given string is a pangram
Sample answerA pangram uses every letter from a to z. I add each lowercase letter to a set, or mark it in a 26-slot true/false array. If all 26 are found, it's a pangram. O(n).
5
Implement Tic-Tac-Toe
Sample answerI keep counters for each row, each column, and the two diagonals. X adds +1, O adds -1. After each move, I update only the affected counters. If any counter reaches +3 or -3, someone has won. Each move is O(1).
6
Check whether a Sudoku board is valid
Sample answerI check that no digit repeats in any row, column, or 3x3 box. I use sets, and the box number is (row / 3) × 3 + (col / 3). One pass over all 81 cells.
7
Find the median of an unsorted list of integers in O(n)
Sample answerI use Quickselect. I pick a pivot, split numbers into smaller and bigger, and then only go into the side that contains the middle position. On average that's O(n). The 'median of medians' trick makes it O(n) even in the worst case.
8
Reverse a number given as a string
Sample answerI use two pointers, one at each end, and swap characters until they meet. If there's a minus sign, I keep it at the front and reverse the rest. I'd also ask whether to remove leading zeros.
9
Reverse a string word by word
Sample answerI split the string by spaces and ignore extra spaces. I reverse the list of words, then join them with one space.
10
Word Search: does a word exist in a 2D letter grid?
Sample answerFor every cell that matches the first letter, I run DFS in 4 directions to match the next letters. I mark cells as used on the current path and unmark them when I go back.
11
First missing positive in O(n) time and O(1) space
Sample answerI place each number x (from 1 to n) at index x minus 1 by swapping. Then I scan: the first index i where the value isn't i + 1 gives the answer i + 1. If everything fits, the answer is n + 1. O(n) time, O(1) extra space.
12
Remove comments from C++ source code
Sample answerI read character by character with a flag for 'inside a block comment'. If I see //, I skip the rest of the line. If I see /*, I turn the flag on until I see */. Everything else goes to the output.
13
Return matrix elements in spiral order
Sample answerI keep four borders: top, bottom, left, right. I go right along the top, down the right side, left along the bottom, and up the left side, shrinking the borders each time. I stop when the borders cross.
14
String compression in place
Sample answerI use two pointers: one to read and one to write. I count each group of the same letter, write the letter, and write the count only if it's more than 1. I return where the write pointer ends.
15
Reverse linked list nodes in groups of k
Sample answerI check if there are k nodes ahead. If yes, I reverse those k nodes and connect them to the part before. Then I move on. If fewer than k nodes are left, I leave them as they are.
16
Merge k sorted linked lists
Sample answerI put the first node of each list into a min-heap. I pop the smallest, add it to the result, and push its next node. Repeat until the heap is empty. O(N log k).
17
Validate a binary search tree
Sample answerI use DFS with an allowed range. Going left, the parent's value becomes the new maximum. Going right, it becomes the new minimum. If any node is outside its range, it's not a BST.
18
Median of two sorted arrays
Sample answerI binary search on the smaller array to cut both arrays so that the left parts together hold half of all numbers, and every left number is smaller than or equal to every right number. Then the median comes from the numbers at the cut. O(log of the smaller size).
19
Trapping rain water
Sample answerWater above each bar = the smaller of (tallest bar on its left, tallest bar on its right) minus its own height. I use two pointers from both ends and track the left max and right max, always moving the side with the smaller max. O(n) time, O(1) space.
20
Design an IDE like Visual Studio
Sample answerMain parts: a text editor, a project and file manager, a build system, a debugger, and plugins. To keep typing fast, I run heavy work like code checking in the background. I'd use a language server so it can support many languages, and save work automatically.
Microsoft non-technical interview questions (20)
Tip: Microsoft looks for a “growth mindset”: people who learn from mistakes and keep improving. Show this in every story.
1
Why would you choose Microsoft? / Why Microsoft?
Sample answerMicrosoft tools like Windows, Office, Teams, and Azure help almost every company in the world work better. I also like the growth mindset culture, where learning matters more than knowing everything. I want to grow here and help customers succeed.
2
Tell me about yourself
Sample answerRight now, I'm a [role] at [company], where I [main work]. Before that, I [earlier experience]. I'm excited about this role because [reason linked to the job].
Tip: Present, then past, then future. Keep it under 1 minute.
Fill the highlighted blanks with your own true story.
3
Why are you leaving your current job?
Sample answerI've learned a lot in my current job, but I'm ready for bigger challenges and to work with global customers. This role gives me that chance to grow.
Tip: Stay positive. Never complain about your old company.
4
What was your biggest career success, and your biggest failure?
Sample answerSuccess: [result with a number], because I [action]. Failure: [what went wrong]. I owned it, fixed what I could, and changed [habit] so it doesn't happen again.
Fill the highlighted blanks with your own true story.
5
How would you escalate things within Microsoft?
Sample answerFirst, I try to solve it myself and collect all the facts. If I can't, I escalate early, not late, to the right team with a short summary: what's wrong, how it affects the customer, what I've tried, and what I need. I keep the customer updated the whole time.
6
Walk us through how you would solve these customer cases
Sample answerMy steps: understand the problem and how serious it is. Calm the customer and tell them what to expect. Bring in the right experts. Give updates at fixed times. After it's fixed, review what happened so it doesn't happen again.
7
Role play: run a service review with 3 managers acting as the customer
Sample answerI'd start with the customer's goals. Then show what went well last period, with numbers. I'd be honest about problems and what we did to fix them. Then share the plan for next period, ask for their feedback, and agree on next steps.
8
Describe how you would support a customer with critical issues
Sample answerI treat it as top priority. I get the right engineers on a call fast, give the customer one main contact person, and send updates at set times, like every hour. After the fix, I share a report on the cause and how we'll prevent it.
9
Tell me about a time you went through a major organizational change
Sample answerMy company changed teams and managers in one month. Many people were confused. I asked my new manager about priorities, helped teammates understand the new setup, and kept my clients updated. My work didn't slow down, and I learned to adapt quickly.
10
What are your weak and strong points?
Sample answerStrength: I explain complex things simply, so customers trust me. Weakness: I used to find it hard to hand over tasks. Now I share work earlier and check in regularly, and it's getting better.
11
Have you had any conflicts in your team?
Sample answerYes. Two teammates disagreed on a plan. I brought them together, let each one explain, and we focused on what the customer needed. We used a mix of both ideas, and the project went well.
12
Give an example of when you challenged a manager's decision, and the outcome
Sample answerMy manager wanted to [decision]. I felt it could hurt customers, so I respectfully showed him data. He changed part of the plan. Where he didn't agree, I still fully supported the final decision.
Fill the highlighted blanks with your own true story.
13
How do you manage your work-life balance?
Sample answerI plan my week and do the most important tasks first. I try to keep clear working hours. I also exercise and spend time with family. That keeps me fresh and actually makes me more productive at work.
14
Tell me about a mistake you made and how you learned from it
Sample answerI once promised a client a date without checking with my team, and we missed it. I told the client honestly, gave a new realistic date, and delivered. Now I always check with the team before making promises.
15
Describe a time you dealt with someone who did not collaborate
Sample answerA teammate wasn't sharing updates, and it slowed us down. I talked to him privately and found out he was overloaded. I offered help, and we agreed on a short daily update. Things got better quickly.
16
Tell me why you are the best candidate for this role
Sample answerI've spent [X years] doing exactly [main duty], with results like [number]. I learn fast and I really care about customers. That mix of experience, results, and attitude makes me a strong fit.
Fill the highlighted blanks with your own true story.
17
What is your favorite Microsoft product, and why?
Sample answerMicrosoft Excel. It's easy to start with but very powerful. I've used it to [example]. I'd love to see Copilot explain data in plain words even more, so beginners can use it too.
Fill the highlighted blanks with your own true story.
18
Tell me about the greatest accomplishment or failure of your career
Sample answerMy greatest accomplishment was [result with a number]. I'm proud because I [action] when it was hard. My biggest failure was [short story], and it taught me [lesson].
Fill the highlighted blanks with your own true story.
19
Tell me about a time you struggled to work with one of your colleagues
Sample answerA colleague and I had very different work styles. She liked detailed plans, and I liked moving fast. I asked her what helped her work best. We agreed to make a short plan before starting. After that, we worked well together.
20
Tell me about a time you led a team
Sample answerI led a team of [N] on [project]. I set clear goals, gave each person a task that matched their strengths, and checked in weekly. When we hit a problem, I helped clear it. We finished [on time] and achieved [result].
Fill the highlighted blanks with your own true story.
How to use the sample answers
The questions are real. The answers are samples written for this guide, not taken from the sources. They show how to answer, in simple spoken words.
[brackets] are blanks. Fill them with your own true story. Never make one up: interviewers ask follow-up questions.
Say it out loud 3 to 5 times. Keep a story answer to 1–2 minutes.
Story questions: Situation → Task → Action (say “I”, not “we”) → Result, with a number.
Coding questions: repeat the question → easy way → better way → code while talking → test it → say the speed.
How to read the labels under a question
Write code what the question asks you to do.
Proof: a real candidate’s post one person who sat this interview wrote online (LeetCode, Glassdoor) that they got this question.
Proof: many candidates’ posts a guide that collected many such posts lists it.
Asked in: the interview round and the job. “First interview call” is the first round, done on the phone or a video call.
Companies never publish their questions, and wording is often paraphrased by the candidate. Every question has its link, so you can check it yourself. Compiled 13 Nov 2026.