文章
三元组相加获得target
三元组相加获得target_3Sum_给定一个数组,选择三个元素相加,结果为target,找出所有符合的三元组GivenanarraySofnintegers,arethereelementsa,b,cinSsucht
字符串数组最长公共前缀
字符串数组最长公共前缀_LongestCommonPrefix_给出字符串数组,查找这个数组中所有字符串的最长公共前缀Writeafunctiontofindthelongestcommonprefixstringamongs
罗马数字转换成阿拉伯数字
罗马数字转换成阿拉伯数字_Romantointeger_给出一个罗马数字(字符串),返回此数字的阿拉伯数字(int)Givenaromannumeral,convertittoaninteger.Inputisgua
阿拉伯数字转换成罗马数字
阿拉伯数字转换成罗马数字_IntegertoRoman_给出一个阿拉伯数字,返回此数字的罗马数字表示Givenaninteger,convertittoaromannumeral.Inputisguaranteed
容器最大盛水量
容器最大盛水量_ContainerWithMostWater_给定n个非负整数a1,a2,...,an,其中每个表示坐标(i,ai)处的点。绘制n条垂直线,使得线i的两个端点在(i,ai)和(i,0)处。找到两条线,它们与x轴一起形成
从数组中寻找和的相加数
从数组中寻找和的相加数_TwoSum_Givenanarrayofintegers,returnindicesofthetwonumberssuchthattheyadduptoaspecifictarget.
两个用链表表示的数字相加
两个用链表表示的数字相加_AddTwoNumbers_Youaregiventwononemptylinkedlistsrepresentingtwononnegativeintegers.Thedigitsarestore
手动实现.*正则表达式匹配函数
手动实现.正则表达式匹配函数_regularexpressionmatching_<code&39;.&39;</codeMatchesanysinglecharacter.<code&39;&39;</codeMa
合并两棵二叉树
合并两棵二叉树_MergeTwoBinaryTrees_Giventwobinarytreesandimaginethatwhenyouputoneofthemtocovertheother,somenodesof
不使用任何额外变量判断回文数字
不使用任何额外变量判断回文数字_PalindromeNumber_Determinewhetheranintegerisapalindrome.Dothiswithoutextraspace.Notes:anynegati
已加载文章中没有匹配内容,试试其他关键词或清空搜索。