Daily challenge for 2026-08-11
588. Count Pages Before Target
You are given a sorted list of integers pages representing page numbers, and an integer target. Return the number of pages that are strictly less than the target. You must achieve O(log n) time complexity using binary search.
Example:Input: pages = [10, 20, 30, 40, 50], target = 35Output: 3
Run this challenge interactively in Python or JavaScript when the app loads.