文章
219. Contains Duplicate II
Givenanarrayofintegersandanintegerk,findoutwhethertherearetwodistinctindicesiandjinthearraysuchthatnumsinumsjandthe
217. Contains Duplicate
Givenanarrayofintegers,findifthearraycontainsanyduplicates.Yourfunctionshouldreturntrueifanyvalueappearsatleasttwiceinthearra
221. Maximal Square
Givena2Dbinarymatrixfilledwith0&39;sand1&39;s,findthelargestsquarecontainingonly1&39;sandreturnitsarea.Example:<pre<code
222. Count Complete Tree Nodes
Givenacompletebinarytree,countthenumberofnodes.Note:DefinitionofacompletebinarytreefromWikipedia:Inacompletebinarytreeeverylev
216. Combination Sum III
Findallpossiblecombinationsofknumbersthatadduptoanumbern,giventhatonlynumbersfrom1to9canbeusedandeachcombinationshouldbe
215. Kth Largest Element in an Array
Findthekthlargestelementinanunsortedarray.Notethatitisthekthlargestelementinthesortedorder,notthekthdistinctelement.Example
409. Longest Palindrome
Givenastringwhichconsistsoflowercaseoruppercaseletters,findthelengthofthelongestpalindromesthatcanbebuiltwiththoseletters.This
142. Linked List Cycle II
Givenalinkedlist,returnthenodewherethecyclebegins.Ifthereisnocycle,returnnull.Torepresentacycleinthegivenlinkedlist,weusea
leetcode409.Longest Palindrome
题目要求<pre<codeGivenastringwhichconsistsoflowercaseoruppercaseletters,findthelengthofthelongestpalindromesthatcanbebuiltwi
leetcode416. Partition Equal Subset Sum
题目要求<pre<codeGivenanonemptyarraycontainingonlypositiveintegers,findifthearraycanbepartitionedintotwosubsetssuchthatthes
已加载文章中没有匹配内容,试试其他关键词或清空搜索。