# searching medium

How Many Are Greater Than X?

Scores above x win the gold sticker. ⭐

You get a SORTED list of scores and the number x. Print how many are strictly greater than x, using a boundary search.

Example:

Input: scores = [50, 60, 70, 80, 90], x = 65 Output: 3

The boundary search finds 70 is the first score bigger than 65, at position 2 — everything from there to the end (70, 80, 90, 3 scores) counts.

💡 need a hint?

srch-greater-than-x.py🔒 given lines are locked — write your code in between
loading...