LeetCode 274 H-Index (H索引)

翻译

给定一个研究者的引用数(每个引用都是非负数)的数组,写一个函数用于计算研究者的h索引。

根据维基百科对于h-index的定义:“一个科学家有索引h,如果他或他的N篇论文至少存在h个相互引用,而且其他的N-h篇论文相互引用次数不高于h。

例如,给定citations = [3, 0, 6, 1, 5],这意味着研究者总共有5篇论文,而且每一篇论文分别收到3、0、6、1、5次相互引用。

因为研究者有3篇论文存在至少3次引用(译者注:即数组的第0、2、4篇论文分别存在3、6、5次引用),而其余剩下的则不超过3次相互引用,所以他的h-index是3。

备注:如果对于h有多个可能的值,那么取最大值作为h-index。

原文

Given an array of citations (each citation is a non-negative integer) of a researcher,
write a function to compute the researcher’s h-index.

According to the definition of h-index on Wikipedia:
“A scientist has index h if h of his/her N papers have at least h citations each,
and the other N − h papers have no more than h citations each.”

For example, given citations = [3, 0, 6, 1, 5], which means the researcher h

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值