文章
leetcode47 Permutations II
题目要求<pre<codeGivenacollectionofnumbersthatmightcontainduplicates,returnallpossibleuniquepermutations.Forexample,1,1,2have
[LeetCode] Binary Tree Level Order Traversal
BinaryTreeLevelOrderTraversal系列<blockquote<pGivenabinarytree,returnthelevelordertraversalofitsnodes&39;values.(ie,fromle
[LeetCode] Number of Islands
NumberofIslands<blockquote<pGivenaboolean2Dmatrix,0isrepresentedasthesea,1isrepresentedastheisland.Iftwo1isadjacent,
[LeetCode] Kth Smallest Element in a Sorted Matrix
KthSmallestElementinaSortedMatrix<blockquote<pGivenanxnmatrixwhereeachoftherowsandcolumnsaresortedin<br/ascendingorde
leetcode31 Next Permutation
题目要求<pre<codeImplementnextpermutation,whichrearrangesnumbersintothelexicographicallynextgreaterpermutationofnumbers.Ifsuchar
Longest Common Prefix
LongestCommonPrefix<pre<codeWriteafunctiontofindthelongestcommonprefixstringamongstanarrayofstrings.</code</pre思路
leetcode46 Permutation 排列组合
题目要求<pre<codeGivenacollectionofdistinctnumbers,returnallpossiblepermutations.Forexample,1,2,3havethefollowingpermutations:
[LeetCode] Different Ways to Add Parentheses
DifferentWaystoAddParentheses<blockquote<pGivenastringofnumbersandoperators,returnallpossibleresultsfromcomputingallthedif
[LeetCode] Lowest Common Ancestor of a Binary Tree系列
LowestCommonAncestorofaBinaryTree<blockquote<pGivenabinarysearchtree(BST),findthelowestcommonancestor(LCA)oftwogivennod
Implement strStr()
ImplementstrStr()<pre<codeReturnstheindexofthefirstoccurrenceofneedleinhaystack,or1ifneedleisnotpartofhaystack.</code<
已加载文章中没有匹配内容,试试其他关键词或清空搜索。