Practice · 1 of 5
Implement the contract
CHALLENGE
Difficulty: intermediate+25 XP
Implement int countInRange(int[] data, int lo, int hi): the number of elements v with lo <= v <= hi. Both bounds are inclusive; data may be empty. Return the count — print nothing.
Press Submit to check your solution.
Back to lesson: Practice: Bootcamp drills