← Questions

Leaves left in a garden after wind gusts

0
OpenAIAbridgeCodingLast asked Oct 2026

A coding interview question asked in Abridge's coding round and at OpenAI, last asked Oct 2026. It tests grids, prefix sums and simulation.

A rectangular garden is a grid where garden[r][c] is the number of leaves in that cell. Gusts are processed left to right; each gust (U, D, L or R) moves every remaining leaf one cell in that direction.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • Abridge · Coding · Last asked Oct 2026Coding tied to the product, not puzzles; mobile candidates had a one-hour hands-on build
  • OpenAI · Agentic coding (beta) · Last asked Sep 2026An existing codebase and changes too large to write by hand; you work through them with an AI coding agent · An AI coding agent is expected

What it tests

grids · prefix sums · simulation

Your code and the AI tutor open when you unlock this question.