文章
LeetCode 319. Bulb Switcher
DescriptionTherearenbulbsthatareinitiallyoff.Youfirstturnonallthebulbs.Then,youturnoffeverysecondbulb.Onthethirdround,
228. Summary Ranges
Givenasortedintegerarraywithoutduplicates,returnthesummaryofitsranges.Example1:<pre<codeInput:0,1,2,4,5,7Output:&34;0>2&
995. Minimum Number of K Consecutive Bit Flips
InanarrayAcontainingonly0sand1s,aKbitflipconsistsofchoosinga(contiguous)subarrayoflengthKandsimultaneouslychangingevery0in
LeetCode 318. Maximum Product of Word Lengths
DescriptionGivenastringarraywords,findthemaximumvalueoflength(wordi)length(wordj)wherethetwowordsdonotsharecommonlette
133. Clone Graph
Giventheheadofagraph,returnadeepcopy(clone)ofthegraph.Eachnodeinthegraphcontainsalabel(int)andalist(ListUndirectedGraphNode
106. Construct Binary Tree from Inorder and Postorder Traversal
Giveninorderandpostordertraversalofatree,constructthebinarytree.Note:Youmayassumethatduplicatesdonotexistinthetree.Forexample,g
105. Construct Binary Tree from Preorder and Inorder Traversal
Givenpreorderandinordertraversalofatree,constructthebinarytree.Note:Youmayassumethatduplicatesdonotexistinthetree.Forexample,gi
LeetCode 316. Remove Duplicate Letters
DescriptionGivenastringwhichcontainsonlylowercaseletters,removeduplicateletterssothateveryletterappearonceandonlyonce.Youmu
220. Contains Duplicate III
Givenanarrayofintegers,findoutwhethertherearetwodistinctindicesiandjinthearraysuchthattheabsolutedifferencebetweennumsiand
LeetCode 315. Count of Smaller Numbers After Self
DescriptionYouaregivenanintegerarraynumsandyouhavetoreturnanewcountsarray.Thecountsarrayhasthepropertywherecountsiist
已加载文章中没有匹配内容,试试其他关键词或清空搜索。