文章
3. Longest Substring Without Repeating Characters
题目:Givenastring,findthelengthofthelongestsubstringwithoutrepeatingcharacters.Examples:Given&34;abcabcbb&34;,theansweris&34
[Leetcode] Binary Tree Upside Down 二叉树上下调个儿
BinaryTreeUpsideDown<blockquote<pGivenabinarytreewherealltherightnodesareeitherleafnodeswithasibling(aleftnodethatsha
1. Two Sum
问题:Givenanarrayofintegers,returnindicesofthetwonumberssuchthattheyadduptoaspecifictarget.Youmayassumethateachinputwould
49. Group Anagrams
题目:Givenanarrayofstrings,groupanagramstogether.Forexample,given:&34;eat&34;,&34;tea&34;,&34;tan&34;,&34;ate&34;,&34;nat&34;
[Leetcode] Maximum Size Subarray Sum Equals k 找和为k的最长子数组
MaximumSizeSubarraySumEqualsk<blockquote<pGivenanarraynumsandatargetvaluek,findthemaximumlengthofasubarraythatsumsto
164. Maximum Gap
题目:Givenanunsortedarray,findthemaximumdifferencebetweenthesuccessiveelementsinitssortedform.Trytosolveitinlineartime/space.
[Leetcode] Sort Transformed Array 抛物线排序
SortTransformedArray<blockquote<pGivenasortedarrayofintegersnumsandintegervaluesa,bandc.Applyafunctionoftheformf(x)
274. H-Index
题目:Givenanarrayofcitations(eachcitationisanonnegativeinteger)ofaresearcher,writeafunctiontocomputetheresearcher&39;shindex.A
[Leetcode] Maximum Gap 相邻最大差值
MaximumGap<blockquote<pGivenanunsortedarray,findthemaximumdifferencebetweenthesuccessiveelementsinitssortedform.</p<pTry
[Leetcode] Binary Tree Traversal 二叉树三种非递归遍历
BinaryTreePreorderTraversal前序遍历<blockquote<p访问顺序:根左右</p</blockquote栈复杂度O(N)时间O(N)系统栈空间思路先写一个utility:
已加载文章中没有匹配内容,试试其他关键词或清空搜索。