文章
leetcode讲解--867. Transpose Matrix
题目Givenamatrix<codeA</code,returnthetransposeof<codeA</code.Thetransposeofamatrixisthematrixflippedoverit&39;smaindia
leetcode讲解--908. Smallest Range I
题目Givenanarray<codeA</codeofintegers,foreachinteger<codeAi</codewemaychooseany<codex</codewith<codeK<x<K</
leetcode讲解--700. Search in a Binary Search Tree
题目Giventherootnodeofabinarysearchtree(BST)andavalue.YouneedtofindthenodeintheBSTthatthenode&39;svalueequalsthegiven
leetcode讲解--883. Projection Area of 3D Shapes
题目Ona<codeNN</codegrid,weplacesome<code111</codecubesthatareaxisalignedwiththex,y,andzaxes.Eachvalue<codev
leetcode讲解--590. N-ary Tree Postorder Traversal
题目Givenannarytree,returnthepostordertraversalofitsnodes&39;values.Forexample,givena<code3ary</codetree:!(/img/remote/
经典算法:位图排序
最近发现一个有趣的排序算法,通过位图来完成排序。位图排序其实就是基数排序,只不过位图排序的下标是比特位。问题描述<blockquote输入:一个最多包含n个正整数的文件,每个数都小于n,其中n10^7。如果在输入文件中有任何正数重复出现就是致命错误。没有其他数据与该正数相关联
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
leetcode讲解--951. Flip Equivalent Binary Trees
题目ForabinarytreeT,wecandefineaflipoperationasfollows:chooseanynode,andswaptheleftandrightchildsubtrees.AbinarytreeX
leetcode讲解--922. Sort Array By Parity II
题目Givenanarray<codeA</codeofnonnegativeintegers,halfoftheintegersinAareodd,andhalfoftheintegersareeven.Sortthearray
已加载文章中没有匹配内容,试试其他关键词或清空搜索。