E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
LeetCodes刷题之路
【二】Leetcode之Python
刷题之路
1.MoveZeros给一个数组,将数组里的0全部移到数组最后。Forexample,givennums=[0,1,0,3,12],aftercallingyourfunction,numsshouldbe[1,3,12,0,0].Note:Youmustdothisin-placewithoutmakingacopyofthearray.Minimizethetotalnumberofopera
Easy_ray
·
2018-01-30 22:14
Python
【一】Leetcode之Python
刷题之路
申请完了github帐号,又在Leetcode上发现了新大陆,从昨天开始刷题了,感觉很有意思。看视频学习Python动手不太多,现在开始刷题练习自己的代码水平,leetcode上还有很多大神,快哉美哉! 代码我都放到github里了https://github.com/Ray1225/Python_Training,欢迎大家关注并指正。话不多说,怒上代码。1.HammingDistanceT
Easy_ray
·
2018-01-25 21:19
Python
Leetcode
刷题之路
(Python)——535. Encode and Decode TinyURL
题目的链接:https://leetcode.com/problems/encode-and-decode-tinyurl/description/“TinyURLisaURLshorteningservicewhereyouenteraURLsuchashttps://leetcode.com/problems/design-tinyurlanditreturnsashortURLsuchash
memoryjdch
·
2017-10-17 15:26
leetcode刷题之路
Codeforces
刷题之路
——41A Translation
A.Translationtimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputThetranslationfromtheBerlandlanguageintotheBirlandlanguageisnotaneasytask.Thoselanguagesarevery
郭毓挺
·
2016-09-01 16:49
Codeforces
Codeforces
刷题之路
——41A Translation
A.Translationtimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputThetranslationfromtheBerlandlanguageintotheBirlandlanguageisnotaneasytask.Thoselanguagesarevery
郭毓挺
·
2016-09-01 16:49
Codeforces
Codeforces
刷题之路
——148A Insomnia cure
A.Insomniacuretimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutput«Onedragon.Twodragon.Threedragon»,—theprincesswascounting.Shehadtroublefallingasleep,andshegot
郭毓挺
·
2016-08-31 14:38
Codeforces
Codeforces
刷题之路
——148A Insomnia cure
A.Insomniacuretimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutput«Onedragon.Twodragon.Threedragon»,—theprincesswascounting.Shehadtroublefallingasleep,andshegot
郭毓挺
·
2016-08-31 14:38
Codeforces
Codeforces
刷题之路
——110A Nearly Lucky Number
A.NearlyLuckyNumbertimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputPetyalovesluckynumbers.Weallknowthatluckynumbersarethepositiveintegerswhosedecimalreprese
郭毓挺
·
2016-08-31 14:09
Codeforces
Codeforces
刷题之路
——110A Nearly Lucky Number
A.NearlyLuckyNumbertimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputPetyalovesluckynumbers.Weallknowthatluckynumbersarethepositiveintegerswhosedecimalreprese
郭毓挺
·
2016-08-31 14:09
Codeforces
Codeforces
刷题之路
—— 266B Queue at the School
B.QueueattheSchooltimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputDuringthebreaktheschoolchildren,boysandgirls,formedaqueueofnpeopleinthecanteen.Initiallyth
郭毓挺
·
2016-08-31 13:46
Codeforces
Codeforces
刷题之路
—— 266B Queue at the School
B.QueueattheSchooltimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputDuringthebreaktheschoolchildren,boysandgirls,formedaqueueofnpeopleinthecanteen.Initiallyth
郭毓挺
·
2016-08-31 13:46
Codeforces
Codeforces
刷题之路
——711A Bus to Udayland
A.BustoUdaylandtimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputZStheCoderandChristheBaboonaretravellingtoUdayland!Togetthere,theyhavetogetonthespecialIOIbus
郭毓挺
·
2016-08-30 10:55
Codeforces
Codeforces
刷题之路
——711A Bus to Udayland
A.BustoUdaylandtimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputZStheCoderandChristheBaboonaretravellingtoUdayland!Togetthere,theyhavetogetonthespecialIOIbus
郭毓挺
·
2016-08-30 10:55
Codeforces
Codeforces
刷题之路
——266A Stones on the Table
A.StonesontheTabletimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputTherearenstonesonthetableinarow,eachofthemcanbered,greenorblue.Counttheminimumnumberofston
郭毓挺
·
2016-08-29 17:42
Codeforces
Codeforces
刷题之路
——266A Stones on the Table
A.StonesontheTabletimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputTherearenstonesonthetableinarow,eachofthemcanbered,greenorblue.Counttheminimumnumberofston
郭毓挺
·
2016-08-29 17:42
Codeforces
Codeforces
刷题之路
——546A Soldier and Bananas
A.SoldierandBananastimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputAsoldierwantstobuywbananasintheshop.Hehastopaykdollarsforthefirstbanana,2kdollarsforthesec
郭毓挺
·
2016-08-26 18:23
Codeforces
Codeforces
刷题之路
——710A King Moves
A.KingMovestimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputTheonlykingstandsonthestandardchessboard.Youaregivenhispositioninformat"cd",wherecisthecolumnfrom'
郭毓挺
·
2016-08-25 17:57
Codeforces
Codeforces
刷题之路
——339A Helpful Maths
A.HelpfulMathstimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputXeniathebeginnermathematicianisathirdyearstudentatelementaryschool.Sheisnowlearningtheaddition
郭毓挺
·
2016-08-25 12:22
Codeforces
Codeforces
刷题之路
——116A Tram
A.Tramtimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputLinearKingdomhasexactlyonetramline.Ithasnstops,numberedfrom1tonintheorderoftram'smovement.Atthei-thsto
郭毓挺
·
2016-08-24 15:55
Codeforces
Codeforces
刷题之路
——116A Tram
A.Tramtimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputLinearKingdomhasexactlyonetramline.Ithasnstops,numberedfrom1tonintheorderoftram'smovement.Atthei-thsto
郭毓挺
·
2016-08-24 15:55
Codeforces
Codeforces
刷题之路
——131A cAPS lOCK
A.cAPSlOCKtimelimitpertest0.5secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputwHATDOWENEEDcAPSLOCKFOR?Capslockisacomputerkeyboardkey.Pressingitsetsaninputmodeinwhichtypedlette
郭毓挺
·
2016-08-24 14:14
codeforces
java
算法
Codeforces
Codeforces
刷题之路
——131A cAPS lOCK
A.cAPSlOCKtimelimitpertest0.5secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputwHATDOWENEEDcAPSLOCKFOR?Capslockisacomputerkeyboardkey.Pressingitsetsaninputmodeinwhichtypedlette
郭毓挺
·
2016-08-24 14:14
Codeforces
Codeforces
刷题之路
——133A HQ9+
A.HQ9+timelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputHQ9+isajokeprogramminglanguagewhichhasonlyfourone-characterinstructions:"H"prints"Hello,World!","Q"pri
郭毓挺
·
2016-08-24 14:19
Codeforces
Codeforces
刷题之路
——133A HQ9+
A.HQ9+timelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputHQ9+isajokeprogramminglanguagewhichhasonlyfourone-characterinstructions:"H"prints"Hello,World!","Q"pri
郭毓挺
·
2016-08-24 14:19
Codeforces
Codeforces
刷题之路
——281A Word Capitalization
A.WordCapitalizationtimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputCapitalizationiswritingawordwithitsfirstletterasacapitalletter.Yourtaskistocapitalizethe
郭毓挺
·
2016-08-24 14:04
Codeforces
Codeforces
刷题之路
——281A Word Capitalization
A.WordCapitalizationtimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputCapitalizationiswritingawordwithitsfirstletterasacapitalletter.Yourtaskistocapitalizethe
郭毓挺
·
2016-08-24 14:04
Codeforces
Codeforces
刷题之路
——122A Lucky Division
A.LuckyDivisiontimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputPetyalovesluckynumbers.Everybodyknowsthatluckynumbersarepositiveintegerswhosedecimalrepresent
郭毓挺
·
2016-08-24 14:07
Codeforces
Codeforces
刷题之路
——122A Lucky Division
A.LuckyDivisiontimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputPetyalovesluckynumbers.Everybodyknowsthatluckynumbersarepositiveintegerswhosedecimalrepresent
郭毓挺
·
2016-08-24 14:07
Codeforces
Codeforces
刷题之路
——58A Chat room
A.Chatroomtimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputVasyahasrecentlylearnedtotypeandlogontotheInternet.Heimmediatelyenteredachatroomanddecidedtosayhel
郭毓挺
·
2016-08-24 14:05
Codeforces
Codeforces
刷题之路
——58A Chat room
A.Chatroomtimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputVasyahasrecentlylearnedtotypeandlogontotheInternet.Heimmediatelyenteredachatroomanddecidedtosayhel
郭毓挺
·
2016-08-24 14:05
Codeforces
Codeforces
刷题之路
——236A Boy or Girl
A.BoyorGirltimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputThosedays,manyboysusebeautifulgirls'photosasavatarsinforums.Soitisprettyhardtotellthegenderofauser
郭毓挺
·
2016-08-24 14:56
Codeforces
Codeforces
刷题之路
——236A Boy or Girl
A.BoyorGirltimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputThosedays,manyboysusebeautifulgirls'photosasavatarsinforums.Soitisprettyhardtotellthegenderofauser
郭毓挺
·
2016-08-24 14:56
Codeforces
Codeforces
刷题之路
——467A George and Accommodation
A.GeorgeandAccommodationtimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputGeorgehasrecentlyenteredtheBSUCP(BerlandStateUniversityforCoolProgrammers).Georgehasa
郭毓挺
·
2016-08-24 14:21
Codeforces
leetcode题目总结
开始了leetcode的
刷题之路
,话不多说,从头开始。。。
奋发向上的少年
·
2016-08-11 21:20
leetcode试题总结
USACO
刷题之路
,开始了
几天前,重新开始刷题了。 重新刷题有几个原因: 1、曾经的OI经历,如今除了悟性高些、知识多些,大多已经遗忘。不希望真的让之前的OI水平就这么丢了。 2、越来越觉得,刷题真的是一件很开心的事情。大学中,很少有东西能够挑战自己的思维了,也不知以后会不会有很多。OI题,真的好宝贵! 3、不舍。喜欢竞赛、喜欢竞赛题,现在我可以确定地说,这将是我一生的爱好。 之所以选择USACO,是因为这个题库
·
2015-11-13 01:52
USACO
SGU
刷题之路
,开始了
0. 关于SGU的简介 SGU的网址是:acm.sgu.ru 向不了解的同学介绍一下SGU这个题库: 1. 题目难度很高,题目大多很经典。 2. 其数据范围很小,时间和空间要求也都很小,同时很精确。甚至,有的题目不止要求你在时间上优化常数,还在空间上要求你某些变量改用short…… 3. 如果说USACO可以一天刷十题,那SGU就是一个可以十天刷一题的题库
·
2015-11-12 20:36
leetcode 6 ZigZag Conversion
我的leetcode
刷题之路
就从此时开始,令我没想到的是,我专门挑了一个被标记为easy的开始,但是给我的感觉却是并不easy费了不少的功夫才搞定他,下面就对此题开始详细说明:problem:thestring"PAYPALISHIRING"iswritteninazigzagpatternonagivennumberofrowslikethis
gengdidi
·
2015-10-29 19:00
day006 【算法】
leetcodes
代码分享
技术芝麻点
·
2015-03-08 00:00
上一页
1
2
3
4
5
6
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他