Practice questions for 300+ companies, plus questions candidates reported from their interviews.
11,568 questions · 341 companies · 1,114 reported by candidates
Showing 11,568 results
A picker robot starts at the top-left bin of an m by n storage grid and walks the outer ring clockwise, then the next ring inward, and so on. Return the bin labels in the order the robot visits them.
Given the words of a post and a line width W, lay the words out greedily into lines of exactly W characters, distributing extra spaces as evenly as possible with leftover spaces going to the leftmost gaps, and left-justify the last line and single-word lines.
Given a product code string, return the length of the longest subsequence that reads the same forward and backward, keeping characters in order but allowing deletions.
Implement glob matching for object paths in a storage bucket where ? matches one non-slash character, * matches any run of non-slash characters, and ** matches any run of characters including slashes, with a/**/b also matching a/b.
Capital One wants to test a new mail offer. The current response rate is 1.0% and the team wants to detect an increase to 1.2% with 80% power at a two-sided 5% level. How many pieces per arm are needed, and how would you reduce the cost?
WhatsApp wants to show a business's product catalog as a carousel at the top of chats with that business. How do you test it, and what metrics on the buyer side and the business side decide the launch?
Explain why a CTR model used to rank merchant ads by predicted click rate times bid needs calibrated probabilities rather than just good ranking, how you would measure miscalibration, and how you would fix it.
Tell me about a time you mentored a less experienced engineer until they could own something important on their own. What did you do, and how did you know it worked?
From a raw app events table, split each eater's events into sessions using a 30-minute inactivity gap, then compute the store view to add-to-cart to checkout funnel, counting a step only if it happens after the previous step in the same session.
Write a Python function that takes daily impressions and clicks for a Meta ad set and returns each day's raw CTR plus an exponentially smoothed CTR. Low-traffic days should not swing the smoothed value much.
Group posts generate candidate notifications (user_id, notif_id, created_at, priority). Enforce a cap of 3 notifications per user per local day, keeping the highest priority ones (earliest first on ties), and report how many were suppressed per user.
Given a lowercase hashtag with no spaces (like 'opentowork') and a dictionary of words, return every way to split it into a space-separated sequence of dictionary words.
The Google Play Pass signup page currently preselects the monthly plan. A test that preselects the annual plan shows fewer signups but higher first-month revenue. How do you decide which default to launch?
A video of length L must be cut at a given set of positions. Each cut costs the length of the segment being cut at that moment. Return the minimum total cost to make all the cuts, in any order.
A binary matrix marks which cells of a feed canvas are free (1) or occupied (0). Return the area of the largest square made entirely of free cells, where an ad unit could be placed.
Tell me about a time a designer and engineers on your project disagreed about a UI implementation and you helped them reach a decision, without being either side's manager.
A new Instagram camera feature only works on the newest app version, which 40% of users have installed in week one. Design the experiment so results are unbiased and generalize to the launch.
Tell me about a time you found that another team's planned change would degrade a core user experience, such as startup time on low-end TV devices, and how you handled it.
A cache stores 100,000 keys by a 32-bit hash fingerprint. Assuming a uniform hash, how many pairs of keys are expected to share a fingerprint, and what is the probability of no collision at all? How many bits would make the collision probability below one in a million?
Given an m by n integer matrix, assign each cell a positive rank so that within every row and every column, a larger value gets a larger rank, equal values get equal ranks, and ranks are as small as possible. Return the rank matrix.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.