Question bank › Hashing
Dsa Hashing Easy

Consecutive Number Check

Given a list of integers, determine if there are three consecutive integers in the list. Input Format: A single line of space-separated integers. Output Format: 'YES' if there are three consecutive integers, otherwise 'NO'. Example: Input: 1 2 3 5 7 8 9 Output: YES

Key concepts

hashingnumberssets

Practise this out loud — free

Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.

🎙 Practise this question now
Part of InterviewLab's verified interview question bank. We show the prompt and concepts to practise with — never a copy-paste solution.