Search
⌘K

Leetcode 2264. Largest 3-Same-Digit Number in String

Given a numeric string, return the largest "good" integer — a length-3 substring made of the same repeated digit (leading zeros allowed) — or "" if none exist. Because all candidates have length 3, the maximum is determined solely by the repeated digit value.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.