文章
81. Search in Rotated Sorted Array II
Supposeanarraysortedinascendingorderisrotatedatsomepivotunknowntoyoubeforehand.(i.e.,0,0,1,2,2,5,6mightbecome2,5,6,0,0,1,2).You
75. Sort Colors
Givenanarraywithnobjectscoloredred,whiteorblue,sorttheminplacesothatobjectsofthesamecolorareadjacent,withthecolorsintheor
leetcode389.Find The Difference
题目要求<pre<codeGiventwostringssandtwhichconsistofonlylowercaseletters.Stringtisgeneratedbyrandomshufflingstringsandthen
79. Word Search
Givena2Dboardandaword,findifthewordexistsinthegrid.Thewordcanbeconstructedfromlettersofsequentiallyadjacentcell,where&34;
leetcode390.Elimination Game
题目要求<pre<codeThereisalistofsortedintegersfrom1ton.Startingfromlefttoright,removethefirstnumberandeveryothernumberafte
90. Subsets II
Givenacollectionofintegersthatmightcontainduplicates,nums,returnallpossiblesubsets(thepowerset).Note:Thesolutionsetmustnotcontai
80. Remove Duplicates from Sorted Array II
Givenasortedarraynums,removetheduplicatesinplacesuchthatduplicatesappearedatmosttwiceandreturnthenewlength.Donotallocateextra
82. Remove Duplicates from Sorted List II
Givenasortedlinkedlist,deleteallnodesthathaveduplicatenumbers,leavingonlydistinctnumbersfromtheoriginallist.Example1:<pre<co
86. Partition List
Givenalinkedlistandavaluex,partitionitsuchthatallnodeslessthanxcomebeforenodesgreaterthanorequaltox.Youshouldpreservethe
LeetCode 306. Additive Number
LeetCode306.AdditiveNumberDescriptionAdditivenumberisastringwhosedigitscanformadditivesequence.Avalidadditivesequence
已加载文章中没有匹配内容,试试其他关键词或清空搜索。