文章
[Leetcode] Populating Next Right Pointers in Each Node 二叉树Next指针
PopulatingNextRightPointersinEachNodeI<blockquote<pGivenabinarytree</p<pre<codestructTreeLinkNode{TreeLinkNodeleft;
[Leetcode] Sum Root to Leaf Numbers 累加叶子节点
SumRoottoLeafNumbers<blockquote<pGivenabinarytreecontainingdigitsfrom09only,eachroottoleafpathcouldrepresentanumber.<br
[Leetcode] Binary Tree Paths 二叉树路径
RootToLeafBinaryTreePaths<blockquoteGivenabinarytree,returnallroottoleafpaths.</blockquote递归法复杂度时间O(b^(h1)
[Leetcode] Number of 1 Bits 一的位数
Numberof1Bits<blockquote<pWriteafunctionthattakesanunsignedintegerandreturnsthenumberof’1&39;bitsithas(alsoknownasthe
Shortest Palindrome@LeetCode(以及关于KMP的理解)
ShortestPalindrome(https://leetcode.com/problems/shortestpalindrome/)用Java暴力是可以过的,思路也很简单:补充完成之后的回文串中心必定在原字符串中,所以原字符串以第一个字符为起点必然存在至少一个回文串(长度可
[Leetcode] Palindrome Number 回文数
PalindromeNumber<blockquote<pDeterminewhetheranintegerisapalindrome.Dothiswithoutextraspace.</p</blockquote反转比较法Rev
[Leetcode] String to Integer (atoi) 字符串转整数
StringtoInteger(atoi)<blockquote<pImplementatoitoconvertastringtoaninteger.</p<pHint:Carefullyconsiderallpossiblei
[Leetcode] Reverse Integer 反转整数
ReverseInteger<blockquoteReversedigitsofaninteger.<pExample1:x123,return321<br/Example2:x123,return321</p</blockquote
[Leetcode] Longest Palindromic Substring 最长回文子字符串
LongestPalindromicSubstring<blockquoteGivenastringS,findthelongestpalindromicsubstringinS.Youmayassumethatthemaximumlength
[Leetcode] Median of Two Sorted Arrays 有序数组中位数
MedianofTwoSortedArrays最新解法及思路:https://yanjia.li/zh/2018/11/...(https://link.segmentfault.com/?encZyo6s2%2FVNv%2BqWYHQWtn4Cw%3D%3D.
已加载文章中没有匹配内容,试试其他关键词或清空搜索。