← Questions

How would you test a system that counts the leaves on a tree

0
GleanCodingLast asked Sep 2026

A coding interview question asked in Glean's coding round, last asked Sep 2026. It tests testing, qa and test design.

How would you test a system that counts the leaves on a large tree? The question is left vague on purpose: part of the exercise is to find out what the system is and what a correct answer means before designing the tests.

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

  • Glean · Coding · Last asked Sep 2026Live coding, usually two rounds

What it tests

testing · qa · test design

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