Upsolve GKickStart '22 - practice #1, C. H-index
Upsolve GKickStart '22 - practice #1, C. H-index

S AC AC! ^_^ [3m 51s]

Analysis
--------

- O(N) solution
  - via `unordered_map<ll, ll>` and counter for its size
  - trick: decrement by `nCandidates-=candidates[H];` to remove obsolete papers
    <- proof that only citation count of `H` has changed for H+1 H-index

Signed-off-by: Karel Ha <70f8965fdfb04f1fc0e708a55d9e822c449f57d3@gmail.com>

mathemage/CompetitiveProgramming,mathemage/CompetitiveProgramming,mathemage/CompetitiveProgramming,mathemage/CompetitiveProgramming,mathemage/CompetitiveProgramming,mathemage/CompetitiveProgramming