Discuss
Interview experiences, the questions people were asked, and salaries, shared by software engineers. 817 posts so far.
-
Nuro: Search tool over a year of petabyte-scale vehicle data
Problem. Design an internal tool to search a year of vehicle data at petabyte scale. A query names a data range and can cap the number of rows returned. Each row is very large, so
-
Nuro: Versioned key-value store with rollback delete under concurrency
Problem. Design a versioned key value store with three operations. put writes a value for a key at a new version. get key, version returns the value whose version is closest to the
-
Nutanix: Peak memory usage and its time window from process intervals
Problem. You get a list of processes. Each has a start time, an end time and the memory it uses while running. Find the peak total memory in use at any moment, and report the start
-
Hudson River Trading: Coordinate lit by the most street lamps
Problem. Each street lamp has a centre c and a radius r and lights every point from c r to c + r. Find the coordinate lit by the largest number of lamps. If several coordinates tie
-
Hudson River Trading: Players racing past a watcher that flips direction
Problem. Players stand on a road from position 0 to position L. Each player can only move right, one unit per second. A watcher starts at position W facing left and walks one unit
-
Zoho: Sort odds ascending and evens descending in place, keeping parity slots
Problem. Given an integer array, sort the odd values in ascending order and the even values in descending order without using extra space. Each position keeps its parity: a slot th
-
Hudson River Trading: Ball position on a tilting maze after timed tilts
Problem. A board holds a maze and a ball. At any moment the board is tilted up, down, left or right, or lies flat. Each second, if the board is tilted and the next cell in that dir
-
Nvidia: Count distinct strings with your own hash table, then make it parallel
Problem. Given an array of strings, count how many distinct strings it contains. You may not use any library containers, so you have to build the hash table yourself. The team was
-
Revolut: In-memory bank that grows into a production service
Problem. Start with an in memory banking service that can open accounts and return balances. Then extend it step by step. Steps. Add withdrawals that are safe under concurrent acce
-
Infosys: Offline auto-save for a browser-based collaborative document editor
Problem. Design an offline auto save feature for a web document editor similar to an online word processor. While the user is offline their edits must keep saving, and when the con
-
TCS: Closest achievable cost from one base plus up to two of each topping
Problem. You get two arrays: base costs breads and add on costs toppings , plus a target value. Pick exactly one base, and use each topping zero, one or two times. Return the total
-
Infosys: Top-K salaries per department in SQL without LIMIT
Problem. Given an employee table with salary and department columns, return the employees whose salaries fall in the top K within each department. You can't use LIMIT. Expected app
-
Groww: Auto square-off service for intraday positions on price thresholds
Problem. Design a risk service that automatically closes a user's intraday position once the price moves a set percentage away from the previous day's close. Example: a stock close
-
Myntra: Largest histogram rectangle under a cap after removing one bar
Problem. You get an array of building heights and an integer M. Remove exactly one building, then find the largest rectangle area in the remaining skyline whose area is no more tha
-
Databricks: Earliest substring that is a permutation of a shorter pattern
Problem. You get a long text and a shorter pattern. Find the earliest contiguous substring of the text that uses exactly the same characters as the pattern, with the same counts, i
-
Rippling: Rule engine that validates expenses against configurable rules
Problem. You get a list of expenses and a set of rules. Build an engine that checks every expense against the rules and reports which ones break which rule. What is judged. New rul
-
Walmart Global Tech: Build a thread pool executor modelled on the JDK internals
Problem. Design a thread pool executor that works the way Java's built in one does internally. Present a class diagram, how the classes relate, and their key fields and methods. Ex
-
Shopify: Gift-exchange pairing from a CSV with exclusion rules
Problem. Read gift exchange participants from a CSV file and print who gives to whom. Every person gives exactly one gift and receives exactly one, and nobody can be assigned to th
-
Walmart Global Tech: Count islands in a grid, then count only distinct island shapes
Problem. You get a 2D grid of land and water cells. First, count the islands, where an island is a group of land cells connected horizontally or vertically. Follow up twist. Change
-
Rippling: Article voting with the last K flipped articles
Problem. Build an article store where users can upvote and downvote articles. Also support a query that returns the last K articles whose vote state flipped. What is judged. The da