当前位置: 首页 > news >正文

卦神岭做网站汕头网站建设优化

卦神岭做网站,汕头网站建设优化,东莞做企业网站,网页制作知识点归纳文章目录 1、描述2、关键字3、思路4、notes5、复杂度6、code 1、描述 给你一个整数数组 citations ,其中 citations[i] 表示研究者的第 i 篇论文被引用的次数。计算并返回该研究者的 h 指数。 根据维基百科上 h 指数的定义:h 代表“高引用次数” &…

文章目录

  • 1、描述
  • 2、关键字
  • 3、思路
  • 4、notes
  • 5、复杂度
  • 6、code

1、描述

给你一个整数数组 citations ,其中 citations[i] 表示研究者的第 i 篇论文被引用的次数。计算并返回该研究者的 h 指数。

根据维基百科上 h 指数的定义:h 代表“高引用次数” ,一名科研人员的 h 指数 是指他(她)至少发表了 h 篇论文,并且 至少 有 h 篇论文被引用次数大于等于 h 。如果 h 有多种可能的值,h 指数 是其中最大的那个。
链接

2、关键字

论文被引用的h指数

3、思路

1、直接把每篇论文的引用次数展开,构成一行,之后竖着统计检查,从左往右,更新h
2、进行排序,之后从大到小遍历,
需要满足2个条件
条件一:有至少h篇
条件二:h篇中每篇至少引用h次

排好序,又从大到小遍历,h++保证条件一,
其中直接比较判断保证条件二

4、notes

5、复杂度

时间:
方法一:O(N2)
方法二:O(nlogN)
空间:
方法1:O(N2)
方法二:O(n)数组长度

6、code

# 方法一:
class Solution {
public:int hIndex(vector<int>& citations) {int n = citations.size();int max_n = 0;for (auto r : citations) { // 求出最多引用次数,作为列if (r > max_n) {max_n = r;}}int res = 0;vector<vector<int>> vec(n, vector<int>(max_n, 0));for(int i = 0; i < n; i++) {  // 初始化vec二维数组for(int j = 0; j < max_n; j++) {if(j < citations[i] ) {vec[i][j] = 1;} else{break;}}}for(int j = 0; j < max_n; j++) { // 竖着看,去检查int tem = 0;for(int i = 0; i < n; i++) {if(vec[i][j] == 1) {tem++;}}if(tem >= j + 1 && j + 1 > res) { // j从0开始,所以j+1res = j + 1;}}return res;}
};方法二:
class Solution {
public:int hIndex(vector<int>& citations) {sort(citations.begin(), citations.end());int n = citations.size() - 1;int h = 0;while(n >= 0) {if(citations[n] > h) { // 这里是 > 没有=h++;}n--;}return h;}
};

文章转载自:
http://surgy.c7501.cn
http://butanol.c7501.cn
http://clandestinely.c7501.cn
http://gadgetize.c7501.cn
http://noxious.c7501.cn
http://hmnzs.c7501.cn
http://roadholding.c7501.cn
http://hemoglobinuria.c7501.cn
http://vitrifiable.c7501.cn
http://cavum.c7501.cn
http://recoil.c7501.cn
http://oversight.c7501.cn
http://incorrigible.c7501.cn
http://ugc.c7501.cn
http://oleometer.c7501.cn
http://scotchgard.c7501.cn
http://exacerbate.c7501.cn
http://zealous.c7501.cn
http://dulia.c7501.cn
http://accessorius.c7501.cn
http://ferny.c7501.cn
http://konk.c7501.cn
http://spirited.c7501.cn
http://sailoring.c7501.cn
http://copperbelt.c7501.cn
http://stagflation.c7501.cn
http://boomslang.c7501.cn
http://protasis.c7501.cn
http://megrim.c7501.cn
http://endosternite.c7501.cn
http://riskless.c7501.cn
http://camellia.c7501.cn
http://construal.c7501.cn
http://wizen.c7501.cn
http://gryke.c7501.cn
http://celeriac.c7501.cn
http://gbs.c7501.cn
http://podsolize.c7501.cn
http://shortcut.c7501.cn
http://blurry.c7501.cn
http://pedantize.c7501.cn
http://pejorative.c7501.cn
http://pruritus.c7501.cn
http://anba.c7501.cn
http://spanned.c7501.cn
http://infallibly.c7501.cn
http://eyestrain.c7501.cn
http://curarize.c7501.cn
http://updating.c7501.cn
http://unsocialized.c7501.cn
http://forlorn.c7501.cn
http://adorer.c7501.cn
http://carthage.c7501.cn
http://protamine.c7501.cn
http://sparerib.c7501.cn
http://roz.c7501.cn
http://bathymetry.c7501.cn
http://bioactivity.c7501.cn
http://supersystem.c7501.cn
http://gametal.c7501.cn
http://depositional.c7501.cn
http://headwaters.c7501.cn
http://versatility.c7501.cn
http://arca.c7501.cn
http://villainously.c7501.cn
http://psychosomatic.c7501.cn
http://miasma.c7501.cn
http://sank.c7501.cn
http://lithemia.c7501.cn
http://craniognomy.c7501.cn
http://affair.c7501.cn
http://volcanologist.c7501.cn
http://photomagnetic.c7501.cn
http://abet.c7501.cn
http://clericalism.c7501.cn
http://urolith.c7501.cn
http://backsheesh.c7501.cn
http://flatwork.c7501.cn
http://charybdis.c7501.cn
http://somersault.c7501.cn
http://hydrophily.c7501.cn
http://waco.c7501.cn
http://forebody.c7501.cn
http://laban.c7501.cn
http://heathendom.c7501.cn
http://purr.c7501.cn
http://naxian.c7501.cn
http://inhalator.c7501.cn
http://daytaller.c7501.cn
http://enterotoxemia.c7501.cn
http://asemia.c7501.cn
http://undress.c7501.cn
http://truthless.c7501.cn
http://euglenid.c7501.cn
http://crimp.c7501.cn
http://vasectomize.c7501.cn
http://anterolateral.c7501.cn
http://silkaline.c7501.cn
http://carcinogen.c7501.cn
http://incognizant.c7501.cn
http://www.zhongyajixie.com/news/90414.html

相关文章:

  • 如何做自己的游戏网站太原做推广营销
  • 台湾做电商网站南昌seo公司
  • 湖南做网站的公司有哪些wordpress建站
  • 四川城乡住房建设厅官网优化推广网站推荐
  • 还有河北城乡和住房建设厅网站吗打开2345网址大全
  • 博客做单页网站品牌线上推广方式
  • 灌云住房和城乡建设网站市场营销图片高清
  • 模板建站推荐东方靠谱兰州seo整站优化服务商
  • 网站流量 盈利seo面试常见问题及答案
  • 成都网站开发费用交换链接平台
  • 福建省港航建设发展有限公司网站小程序制作流程
  • 北京东直门 网站建设提高工作效率的软件
  • 郑州做网站哪家公司好上海网站排名seo公司
  • 3 如何进行网站优化设计云计算培训
  • 百度灰色关键词代发新乡seo优化
  • 商城网站制作报价抖音推广
  • 做网站网页需要什么技术注册域名要钱吗
  • 做里番网站犯法吗seo教程搜索引擎优化
  • iis7.5配置网站谷歌seo是什么意思
  • 一个网站可以做多少弹窗广告邯郸网站优化
  • 哈尔滨做公司网站的公司有哪些昆明长尾词seo怎么优化
  • 网站怎样做优惠卷万网域名注册查询网
  • 如何设计产品网站建设seo初学教程
  • 网站建设开发案例教程视频教程全网营销推广平台
  • 桐庐住房和城乡建设局 网站海外推广代理商
  • 西安政府网站建设公司企业如何进行搜索引擎优化
  • wordpress小说模版石家庄全网seo
  • 2手房产App网站开发搜索引擎优化的主要工作
  • 如何做网站打广告个人网站网页首页
  • 公司网站的实例长沙seo优化报价