← Questions

Fewest stones left after merging equal-level pairs

0
ElevenLabsCodingLast asked Oct 2026

A coding interview question asked in ElevenLabs's online assessment, last asked Oct 2026. It tests counting, bit manipulation and greedy.

Each stone has a positive integer level. Two stones of the same level x can be merged into one stone of level x + 1, and a merged stone can be merged again.

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

What it tests

counting · bit manipulation · greedy

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