文章
83. Remove Duplicates from Sorted List
Givenasortedlinkedlist,deleteallduplicatessuchthateachelementappearonlyonce.<pre<codeExample1:Input:1>1>2Output:1>
70. Climbing Stairs
Youareclimbingastaircase.Ittakesnstepstoreachtothetop.Eachtimeyoucaneitherclimb1or2steps.Inhowmanydistinctwayscanyoucli
69. Sqrt(x)
Implementintsqrt(intx).Computeandreturnthesquarerootofx,wherexisguaranteedtobeanonnegativeinteger.Sincethereturntypeisan
67. Add Binary
Giventwobinarystrings,returntheirsum(alsoabinarystring).Theinputstringsarebothnonemptyandcontainsonlycharacters1or0.<pre<
58. Length of Last Word
Givenastringsconsistsofupper/lowercasealphabetsandemptyspacecharacters&39;&39;,returnthelengthoflastwordinthestring.Ifthe
28. Implement strStr()
ImplementstrStr().Returntheindexofthefirstoccurrenceofneedleinhaystack,or1ifneedleisnotpartofhaystack.<pre<codeExample1:
66. Plus One
Givenanonemptyarrayofdigitsrepresentinganonnegativeinteger,plusonetotheinteger.Thedigitsarestoredsuchthatthemostsignificant
53. Maximum Subarray
Givenanintegerarraynums,findthecontiguoussubarray(containingatleastonenumber)whichhasthelargestsumandreturnitssum.<pre<code
38. Count and Say
Thecountandsaysequenceisthesequenceofintegerswiththefirstfivetermsasfollowing:<pre<code1.12.113.214.12115
985-查询后的偶数和
前言WeeklyContest122(https://link.segmentfault.com/?encW4zJGkYe07mkmBBM%2FfUvgg%3D%3D.CTptnSu4CSSxPvUmWzYo2xO2jsxcPGEA1F2f5fpHoYOYYkXcPnY4h41
已加载文章中没有匹配内容,试试其他关键词或清空搜索。