Scale AI coding interview

Round 4 of 8 · 17 questions reported

See the whole loop
Format
Live coding, one or two rounds, Python
They grade
Correctness, speed and edge cases on medium-to-hard problems

Questions Scale AI asks in this round 17

  • CSV upload endpoint that classifies rows with an LLMCodingA practical round: build a service endpoint that takes an uploaded CSV, sends each row to a language model to classify it, and returns the results as JSON. Write the prompt and…
    Last asked Jul 2026
  • Party hours and quiet gaps by neighborhood and cityCodingA community events app records every party in two separate lists that share a partyId: - partyWindows: rows of partyId, start, end. start and end are hours as strings, and a party…
    Last asked Dec 2025
  • Shuffle, deal and sort a four-player card handCodingYou are building the core of a four-player card game. Model a standard 52-card deck and implement the deal. Types to define - Suit: CLUBS, DIAMONDS, HEARTS, SPADES, in this order…
    Last asked Aug 2026
  • Update a grid of firing neuronsCodingA grid holds neurons that are either firing or not. In each step every neuron's next state depends on how many of its neighbours are firing, in the style of the Game of Life…
    Last asked Feb 2026
  • Implement multi-head attention and LLM samplingCodingImplement multi-head self-attention from scratch, then the sampling step of a language model: given logits, pick the next token with temperature, top-k and top-p (nucleus)…
    Last asked Feb 2026
  • Debug a project-assignment codebaseCodingYou get a small codebase spread over several files that assigns projects (for example to students or courses). Some tests fail. Read your way around it under time pressure, find…
    Last asked Jan 2026
  • Angle between clock handsCodingGiven a time in hours and minutes, return the smaller angle between the hour hand and the minute hand.
    Last asked Dec 2025
  • Lowest common ancestor in an N-ary treeCodingGiven the root of an N-ary tree and two of its nodes, return their lowest common ancestor. Use one depth-first pass in which each subtree reports whether it contains each of the…
    Last asked Dec 2025
  • React hook for API data and UI changes in a starter appCodingIn a starter React app with API and UI code already written: write a hook that fetches data from the API and converts it to the shape the UI needs, then change the UI as asked…
    Possibly retired
  • Write a text parser and fix the bugs in an ML projectCodingIn a one-hour round on an existing ML project: first write a parser that turns raw text data into the format the project needs, then find and fix three bugs elsewhere in a fairly…
    Possibly retired
  • Count stable server segmentsCodingA row of n machines has integer capacities capacity0..n-1. A contiguous segment l, r is stable when all of these hold: 1. It contains at least 3 machines (r - l = 2). 2. The two…
  • Distinct OR values of increasing subsequencesCodingGiven an integer array arr, define the goodness of a sequence as the bitwise OR of all its elements. The goodness of the empty sequence is 0. A subsequence keeps elements in their…
  • Poker hand checker with jokersCodingWrite isvalidhand(hand: liststr) - bool for a five-card poker game. Each card is a string "<rank of <suit". The rank is 2 to 10, J, Q, K or A. The suit is hearts, diamonds, clubs…