文章
[Leetcode] N-Queens N皇后
NQueensI<blockquote<pThenqueenspuzzleistheproblemofplacingnqueensonann×nchessboardsuchthatnotwoqueensattackeachother
[Leetcode] Sort Colors 颜色排序
SortColors<blockquote<pGivenanarraywithnobjectscoloredred,whiteorblue,sortthemsothatobjectsofthesamecolorareadjacent,
[Leetcode] Reverse Words in a String 反转单词顺序
ReverseWordsinaString<blockquote<pGivenaninputstring,reversethestringwordbyword.</p<pForexample,Givens&34;theskyis
[Leetcode] Same Tree Symmetric Tree 相同树 对称树
SameTree<blockquoteGiventwobinarytrees,writeafunctiontocheckiftheyareequalornot.<pTwobinarytreesareconsideredequalifthe
[Leetcode] Flatten Binary Tree to Linked List 整平二叉树
FlattenBinaryTreetoLinkedList<blockquote<pGivenabinarytree,flattenittoalinkedlistinplace.</p<pForexample,Given</p<p
[Leetcode] Pow(x, n) 实现乘方函数
Pow(x,n)<blockquote<pImplementpow(x,n)</p</blockquote递归法复杂度时间O(logN)空间O(logN)思路通过一点点数学推导我们可以知道,如果n是偶数$$
[Leetcode] Construct Binary Tree from Traversal 根据遍历序列建树
ConstructBinaryTreefromPreorderandInorderTraversal<blockquote<pGivenpreorderandinordertraversalofatree,constructthebinarytr
[Leetcode] Palindrome Partitioning 回文分割
PalindromePartitioning<blockquote<pGivenastrings,partitionssuchthateverysubstringofthepartitionisapalindrome.</p<pReturn
[Leetcode] Number of Islands 岛屿个数
NumberofIslands最新更新的思路,以及题II的解法请访问:https://yanjia.me/zh/2018/11/...(https://link.segmentfault.com/?encHUdBW2XfdaO4TD%2FcFUjVQw%3D%3D.b
[Leetcode] Count and Say 数个数
CountConsecutiveDigitsinInteger<blockquote<pCountconsecutivedigitsandsayit.Forexample,return132341ifinputis1112224.Therear
已加载文章中没有匹配内容,试试其他关键词或清空搜索。