Dsa
Recursion
Warm-up
Recursive Range Count
Write a function that counts how many numbers lie within a specified inclusive range in a list of integers. The range is defined by two integers, `low` and `high` (both inclusive).
Input Format:
The first line contains a list of integers separated by spaces. The second line contains two integers, `low` and `high` separated by a space.
Output Format:
An integer representing the count of numbers within the specified range.
Example:
Input:
1 3 5 7 9 10
3 8
Output:
3
Key concepts
recursioncountingranges
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