Problems

Virtual List Window

MediumDebugging & Performance

Windowing renders only visible rows plus overscan. Input: one line of 5 space-separated integers: totalItems rowHeight viewportHeight scrollTop overscan. Print start..end (inclusive 0-based indexes of rendered rows, clamped to the list).

Input: five integers. Output: start..end.

Your program reads from stdin and prints to stdout.

Example 1

Input: 1000 20 100 0 2

Output: 0..6

Hints

ReactPerformanceVirtualization
Virtual List Window | CodeForge AI