文章
92. Reverse Linked List II
Reversealinkedlistfrompositionmton.Doitinonepass.Note:1≤m≤n≤lengthoflist.Example:<pre<codeInput:1>2>3>4>
LeetCode 309. Best Time to Buy and Sell Stock with Cooldown
DescriptionSayyouhaveanarrayforwhichtheithelementisthepriceofagivenstockondayi.Designanalgorithmtofindthemaximumprof
55. Jump Game
Givenanarrayofnonnegativeintegers,youareinitiallypositionedatthefirstindexofthearray.Eachelementinthearrayrepresentsyourmaximu
leetcode394. Decode String
题目要求<pre<codeGivenanencodedstring,returnit&39;sdecodedstring.Theencodingruleis:kencoded_string,wheretheencoded_stringinsi
leetcode386. Lexicographical Numbers
题目要求<pre<codeGivenanintegern,return1ninlexicographicalorder.Forexample,given13,return:1,10,11,12,13,2,3,4,5,6,7,8,9.Ple
77. Combinations
Giventwointegersnandk,returnallpossiblecombinationsofknumbersoutof1...n.Example:<pre<codeInput:n4,k2Output:2,4
78. Subsets
Givenasetofdistinctintegers,nums,returnallpossiblesubsets(thepowerset).Note:Thesolutionsetmustnotcontainduplicatesubsets.Exam
74. Search a 2D Matrix
Writeanefficientalgorithmthatsearchesforavalueinanmxnmatrix.Thismatrixhasthefollowingproperties:Integersineachrowaresortedfr
73. Set Matrix Zeroes
Givenamxnmatrix,ifanelementis0,setitsentirerowandcolumnto0.Doitinplace.Example1:<pre<codeInput:1,1,1,1,0,1,
60. Permutation Sequence
Theset1,2,3,...,ncontainsatotalofn!uniquepermutations.Bylistingandlabelingallofthepermutationsinorder,wegetthefollowingsequen
已加载文章中没有匹配内容,试试其他关键词或清空搜索。