您现在的位置是:挑肥拣瘦网 > 热点
AI已经会刷LeetCode了
挑肥拣瘦网2026-11-14【热点】{固定数字1}人已围观
简介谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】
本文经AI新媒体量子位(公众号ID:QbitAI)授权转载,转载请联系出处。
你在面试中会遇到的那种算法题,AI已经能自己解决了,比如下面这道题:
对于一个记录论文引用次数的数组,每个元AI素都是非负整数。请写出函数h_index,输出这些论文的h指数,即至多有h篇文章被至少引用了h次。
例:
输入: [3, 0, 6, 1, 4]
输出: 3
AI给出的Python答案是这样的:
除了排序没用counts.已经sort(reverse = True)让人看着血压升高,算是顺利通过测试:
来自UC伯克利的研究团队,将上面这道题被归为“面试级”难度(看来国外程序员面试题有点简单)。
此外还有更简单的“入门级”和更难的“竞赛会刷级”,总共5000道题的测试中,AI能做出15%。
另外有人声称,他专门用GPT-2训练了个专门做LeetCode的AI,能完成80%。
在刷LeetCode的你,是否在颤抖?
GPT-Neo赢过GPT-3
本Le研究使用的题目形式是自然语言题干,不同于以往研究常用的伪代码和代码之间翻译。
题目是从Codeforces、Kattis等刷题网站收集的10000道题,5000道用于训练,另外5000道作为测试集et。
题干的平均长度为293.2个单词,在测试集中每道题平均有21.2个测试用例。
入门级难度的题不需要复杂算法,有1-2年经验的程序员都能回答的那种,有3639个。
面试级难度的题会涉及数据结构,比如树或者图,Co或需要修改常见的算法,有5000个。
剩下的是竞赛级难度,达到USACO、IOI和ACM等竞赛的水平。
研究人员分别训练了GPT-2的1亿参数版和15亿参数版、GPT-3以及“高仿版”GPT-Neo。
参de数规模“只有”27亿的GPT-Neo和更低的GPT-2在测试用例通过率上,表现却比1750亿的GPT-3还要好。
在严格模式下,通过所有测试用例才算完全正确,成绩最好的GPT-Neo只通过了1.12%AI,不过这也有56道题了(反正比我强)。
GPT-Neo来自EleutherAI团队尝试复现GPT的开源项目。
虽然参数规模比GPT-3小得多,但训练数据包含了更多技术网站,比如Stack OverFlow和St已经ack Exchange等,这可能是它在代码生成上胜出的原因之一。
至于GPT-3为什么表现还不如GPT-2,有人猜测可能是它见过的文本太多,虽然擅长生成自然语言,但在逻辑和解题方面过拟合了。
如何评价AI会刷“做题家”
论文一发出来,吃瓜群众脑洞大开。
如果我没通过面试但我写的算法通过了会怎么样?
有人回答他:
没关系,你还可以当你算法的助手。
还有很多人给出下一步建议,比如不用自回归的GPT,改用自编码语言模型Le会怎样?比如CodeTrans。
或者,再用一个GPT专门生成自己回答不出来的问题。
△矛盾相争是吧
乐观的人认为这是解放了人的创造力,未来编程是关于写更少的代码,做更多的架构、工程。
有人畅想,只需要描述需et求就能生成代码可太爽了。
嗨IDE,用我的数据库做一个JavaScript的增查改删,要带测试。
△Ruby on Rails直呼内行
悲观的人却认为,将来有一天,人类程序员只能做做维护工作和评审机器生成的代Co码了。
面对AI“做题家”,你怕了吗?
论文地址:
https://arxiv.org/abs/2105.09938
数据集地址:
https://github.com/hendrycks/apps
自动刷LeetdeCode项目:
https://github.com/gagan3012/project-code-py
很赞哦!(81755966)
站长推荐
友情链接
- 标签: 康师傅
- https://www.scivee.tv/?s=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,ItJ
- https://www.voices.com/talents/search?keywords=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,j2V
- https://www.partilerdunyasi.com/index.php?route=product/search&tag=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,kk2
- https://www.springfieldlibrary.org/library/?s=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,lNN
- https://www.tcv.org.uk/search/谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,lTs
- https://www.wattpad.com/search/谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】RXk
- https://www.seforall.org/search?keywords=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,vSb
- https://www.remit.co.jp/en/?s=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,GHC
- https://www.safetv.go.kr/base/search/view?searchWord=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】M3K
- https://www.kuaikanmanhua.com/sou/谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,HpW
- https://www.libros.unam.mx/catalogsearch/result/?cat=37&dir=asc&format=20&lit=20&manufacturer=3230&mode=list&order=year_edition&q=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,AtL
- https://www.kissthekangaroo.com.au/index.php?route=product/search&tag=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,d58
- https://www.sonepar.ch/fr/search?q=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,AlL
- https://www.trockenmittel.ch/catalogsearch/result/?iC=ZM3&q=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,dO0
- https://www.mynextmove.org/find/search?s=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,VxV
- https://www.l-and-b.jp/?page=1&s=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,aKL
- https://www.synonyms.com/antonyms/谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,kqr
- https://www.world-architects.com/en/search?term=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,N13
- https://www.nuovabai.it/catalogsearch/result/?action=SEARCH&q=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,soD
- https://www.writingforward.com/?action=SEARCH&s=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,YIq
- https://www.lssystems.co.uk/search?page=0&per_page=24&term=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,zjS
- https://hsmoa.com/search?query=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】4Rb
- https://www.madebyoranges.com/nl/search/谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,1P7
- https://www.metalmensales.com/?action=QUERY&s=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,2gi
- https://www.wikiart.org/pt/Search/谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,W5c
- https://www.londontheatredirect.com/search/谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,soV
- https://www.paxnet.co.kr/search/jongmok?kwd=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】7cy
- https://www.realsporting.com/buscador?buscar=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,2FP
- https://www.maigoo.com/search/?block=&q=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,2Od
- https://www.lyrics.com/lyrics/kkk3谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,GYG
- https://www.vocabulary.com/dictionary/谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,y3U
- https://www.remit.co.jp/vi/?s=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】6Qx
- https://www.sdcard.org/ja/?s=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,qDE
- https://www.shacknews.com/editorial-search?q=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,CRj
- https://www.tombow.com/en/search/谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,E5y
- https://www.losgatoschamber.com/list/search?action=SEARCH&q=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,0fR
- https://www.krisinformation.se/en/search?q=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,57c
- https://www.localfootdoc.com/?s=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,xH6
- https://www.routesonline.com/search/?query=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,qs4
- https://www.teacherspayteachers.com/Browse/Search:谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,3YZ
- https://www.pmindia.gov.in/en/?s=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,kMO
- https://www.polar-tech.com/?action=QUERY&s=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,aTy
- https://www.polliwogs.com/search/谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,wsB
- https://www.target.com/s?searchTerm=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,jIP
- https://www.prattlibrary.org/search?q=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,j4Z
- https://www.youm7.com/Home/Search?allwords=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,ZCq
- https://www.spicebar.de/catalogsearch/result/?q=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,LR4
- https://www.schenckprocess.com/search?q=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,53F
- https://www.youthforum.org/search-results?cx=4f5236218ab5e8ef9&ie=UTF-8&q=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,9iv
- https://www.swanagerailway.co.uk/search?q=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,5zS







