← Questions

Count perfect wake numbers: distinct nonzero digits, inner peaks

0
GoogleCodingLast asked Oct 2026

A coding interview question asked in Google's first round (coding), last asked Oct 2026. It tests math, digits and enumeration.

By our definition, a perfect wake number is any positive integer whose base-10 digits pass three checks: none of them is 0, no digit appears twice, and every digit that sits between two other digits is larger than both of them. First…

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

  • Google · First round: coding · Last asked Oct 202645 min · Coding in a Google Doc, no syntax highlighting or autocomplete · No AI

What it tests

math · digits · enumeration · combinatorics

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