文章
leetcode讲解--589. N-ary Tree Preorder Traversal
题目Givenannarytree,returnthepreordertraversalofitsnodes&39;values.Forexample,givena<code3ary</codetree:!(/img/remote/1
leetcode讲解--961. N-Repeated Element in Size 2N Array
题目Inaarray<codeA</codeofsize<code2N</code,thereare<codeN1</codeuniqueelements,andexactlyoneoftheseelementsisrepeatedN
3. 无重复字符的最长子串
题目:给定一个字符串,请你找出其中不含有重复字符的最长子串的长度。示例1:输入:&34;abcabcbb&34;输出:3解释:因为无重复字符的最长子串是&34;abc&34;,所以其长度为3。示例2:输入:&34;bbbbb&34;输出:1解释:
leetcode讲解--951. Flip Equivalent Binary Trees
题目ForabinarytreeT,wecandefineaflipoperationasfollows:chooseanynode,andswaptheleftandrightchildsubtrees.AbinarytreeX
leetcode讲解--922. Sort Array By Parity II
题目Givenanarray<codeA</codeofnonnegativeintegers,halfoftheintegersinAareodd,andhalfoftheintegersareeven.Sortthearray
leetcode讲解--933. Number of Recent Calls
题目Writeaclass<codeRecentCounter</codetocountrecentrequests.Ithasonlyonemethod:<codeping(intt)</code,wheretrepresentssome
leetcode讲解--763. Partition Labels
题目Astring<codeS</codeoflowercaselettersisgiven.Wewanttopartitionthisstringintoasmanypartsaspossiblesothateachletterapp
leetcode讲解--894. All Possible Full Binary Trees
题目Afullbinarytreeisabinarytreewhereeachnodehasexactly0or2children.ReturnalistofallpossiblefullbinarytreeswithNnodes
leetcode讲解--561. Array Partition I
题目Givenanarrayof2nintegers,yourtaskistogrouptheseintegersintonpairsofinteger,say$(a_1,b_1),(a_2,b_2),\cdots,(a_n,b_n)$
leetcode讲解--861. Score After Flipping Matrix
题目Wehaveatwodimensionalmatrix<codeA</codewhereeachvalueis<code0</codeor<code1</code.Amoveconsistsofchoosinganyrowor
已加载文章中没有匹配内容,试试其他关键词或清空搜索。