Discuss
Interview experiences, the questions people were asked, and salaries, shared by software engineers. 817 posts so far.
-
Optiver: Multicore overheat controller simulation
Problem. Simulate a firmware thermal controller for a multicore processor. You get a passive cooling capacity shared by the chip, an active cooling capacity per core, a list of cor
-
Teradata: Design a RAG system over internal company data
Role. Cloud AI engineer, candidate with about two years of experience. Problem. Design a retrieval augmented generation system that answers questions over an organisation's interna
-
Snowflake: Web crawler: fewest clicks between pages, then the actual path
Problem. You have a helper, get all links page , that returns the outgoing links of a page. Given a start page and a target page, return the minimum number of clicks needed to get
-
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
-
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
-
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
-
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
-
TCS: Count, sum and two-decimal average of odd values in an array
Problem. The question is wrapped in a ticket pricing story, but underneath it you read n and then n integers. Find the odd values and print three lines: how many there are, their s
-
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
-
Josh Technology Group: Pair sum in a BST without a stack or list
Problem. Given a binary search tree and a target, find all pairs of nodes whose values add up to the target. Constraints given. You may not use a stack or a temporary list to hold
-
Josh Technology Group: Cascading removal of adjacent letter pairs
Problem. Given a string, remove any two adjacent characters that are consecutive letters like b and c or circular neighbours z and a . After a removal, the characters that become n
-
Nuro: Play a video at a fixed 25 fps with non-thread-safe read and render
Problem. You have a Frame class and a VideoPlayer with two calls: read returns the next frame or signals the end of the video, and render frame draws a frame. Implement on play cli
-
Dropbox: Retention rate of January signups in February (SQL)
Problem. You have a users table with each user's join date and an engagement table that logs user activity. Find the percentage of users who joined in January 2021 and were also ac
-
Swiggy: Shopping cart with checkout and pluggable discount rules
Problem. Design a shopping cart. A user adds items, pays, and has discounts applied. Discounts can work in several different ways, for example different rule types. More features w
-
Stripe: Apply ordered commands to entities with valid state transitions only
Problem. Simulate a system that holds several kinds of entities. You receive an ordered list of commands. Each command tries to move some object from one state to another. Apply th
-
CRED: Compute latency, throughput and error rate over a time range from events
Problem. You start from an existing boilerplate codebase that already holds event data. Extend it so that, for a given start and end timestamp, it computes and shows three metrics:
-
Accenture: Largest element that is greater than everything to its right
Problem. Given an array of integers, find the largest element such that every element to its right is strictly smaller than it, a variant of the classic array leaders idea. Context
-
Palantir: Round-robin scheduler built from a hash map and lists
Problem. In the technical interview for a new grad role, the first question was to design and code a round robin system: hand out turns or work to a set of participants in rotation
-
Teradata: O(1) insert, delete and get-random, then allow duplicates
Problem. Design a data structure that supports insert, delete, search and returning a random element, each in average O 1 time. No duplicates at first. Follow ups. If you cannot us