Interview questions
Find a company or topic. Read the sources, then practice.
Loading the question library…
Find a company or topic. Read the sources, then practice.
Loading the question library…
Showing 2,676–2,700
Given an array apples where apples[i] is the number of apples on the i-th tree and each apple weighs 1 gram with a fixed basket…
General practice
For each element in an integer array, return how many elements in the array are strictly smaller than it. With n ≤ 500 and values…
General practice
Companies: Netflix
Parse a string and replace the predefined HTML entities (", ', &, >, <, ⁄) with their corresponding characters. Ensure only exact entity tokens are…
General practice
Identify sequences of at least three rows with consecutive id values (ids consecutive, dates needn't be) where every people >= 100. Return all rows from…
General practice
Companies: Citadel
I was asked to implement a concurrent system component and then discuss how to make it fault-tolerant under specific failure modes. The follow-up questions were…
Companies: Anthropic
i was given a medium leetcode case (Graph). i was also told that in the real interview, they usually give out medium to hard cases…
Companies: Google
I won't break confidentiality here. One tip though: I think practicing Hackerank is a better way to prepare for Jane Street interviews than practicing Leetcode.
Companies: Jane Street
Given an integer array where exactly n-2 elements are "special", one of the other two elements equals the sum of those special elements and the…
General practice
Given two n×n binary matrices, find the maximum number of positions with 1s in both matrices obtainable by translating (shifting) one matrix over the other…
General practice
For each pixel in an m x n grayscale image, compute the floor of the average of the pixel and its up-to-8 neighbors (using only…
General practice
Given an orders table with order time and delivery time, write a SQL query to return orders that were delivered immediately after being placed (i.e.…
General practice
Compute the percentage (rounded to 2 decimal places) of customers whose first order—defined as the row with the earliest order_date per customer—was immediate…
General practice
Design a dynamic system that supports adding/removing delivery agents and assigning the best available agent to incoming orders in real time, optimizing for proximity or…
General practice
Implement an immutability-helper that, given a nested object/array and a spec of update commands (e.g., $set, $push, $unshift, $splice, $merge, $apply), returns a new data…
General practice
Companies: Databricks
Companies: LinkedIn
Companies: Anthropic
Companies: Anthropic