文章
【leetcode】19. Remove Nth Node From End of List 删除链表的倒数第N个元素
1.题目Givenalinkedlist,removethenthnodefromtheendoflistandreturnitshead.Forexample,Givenlinkedlist:1>2>3>4&g
【Leetcode】18. 4Sum 给定数组中的4个元素之和等于给定值的所有组合
1.题目GivenanarraySofnintegers,arethereelementsa,b,c,anddinSsuchthatabcdtarget?Findalluniquequadrupletsinthe
【Leetcode】17. Letter Combinations of a Phone Number 九键的数字串转字母串
1.题目Givenadigitstring,returnallpossiblelettercombinationsthatthenumbercouldrepresent.Amappingofdigittoletters(justlikeon
【Leetcode】16. 3Sum Closest 集合中选三个元素之和最接近指定值
1.题目GivenanarraySofnintegers,findthreeintegersinSsuchthatthesumisclosesttoagivennumber,target.Returnthesumofthethre
【Leetcode】15. 3Sum 集合中选三个元素之和等于0
1.题目GivenanarraySofnintegers,arethereelementsa,b,cinSsuchthatabc0?Findalluniquetripletsinthearraywhichgives
【Leetcode】14. Longest Common Prefix 两个字符串的最长公共前缀长度
1.题目Writeafunctiontofindthelongestcommonprefixstringamongstanarrayofstrings.2.思路遍历按序逐个比较,直接了当。3.代码耗时:6ms<p
【Leetcode】13. Roman to Integer 罗马数字转阿拉伯数字
1.题目Givenaromannumeral,convertittoaninteger.Inputisguaranteedtobewithintherangefrom1to3999.2.思路按序累加即可。考虑{4、9}10
【Leetcode】12. Integer to Roman 阿拉伯数字转罗马数字
1.题目Givenaninteger,convertittoaromannumeral.Inputisguaranteedtobewithintherangefrom1to3999.2.思路罗马数字的规则:字符:M
【Leetcode】11. Container With Most Water 数列中选两个值使得中间的面积最大
1.题目Givennnonnegativeintegersa1,a2,...,an,whereeachrepresentsapointatcoordinate(i,ai).nverticallinesaredrawnsuchthatth
【leetcode】10. Regular Expression Matching 简易正则匹配
1.题目Implementregularexpressionmatchingwithsupportfor&39;.&39;and&39;&39;.&39;.&39;Matchesanysinglecharacter.&39;&39;M
已加载文章中没有匹配内容,试试其他关键词或清空搜索。