20%off off — LaunchSpecial
Exercises/#69 H-Index
#69

H-Index

Medium🔍 Sorting & Searching
70 XP

Problem

Given an array of citation counts, compute the researcher's h-index (maximum h such that h papers have at least h citations each).

Examples

Input: citations=[3,0,6,1,5]
Output: 3

Input: citations=[1,3,1]
Output: 1
sortingbinary-search
AI Assistant— powered by AI

Unlock hints progressively — start gentle, go deeper only if needed.

💡

Level 1: Gentle Nudge

A subtle direction

🗺️

Level 2: Approach

The algorithm to use

🔍

Level 3: Detailed

Step-by-step guidance

69 / 150

Your Solution

⚡ JavaScript

to save progress and use AI features