Search
⌘K
Get Premium
Leetcode 3415. Find Products with Three Consecutive Digits
Given a list of product IDs (integers), return the IDs whose decimal representation contains any length‑3 substring of consecutive increasing digits (e.g., "123" or "456"). The core task is per-number digit/string scanning to detect a run of three digits where each next digit is one greater than the previous.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.