文章
合并n个已排序的链表
合并n个已排序的链表_MergekSortedLists_合并n个已排序的链表,新链表中的每个节点必须是来自输入的原链表的节点(即不能构造新的节点),返回新链表的头部。Mergeksortedlinkedlistsandreturn
构造n个成对括号
构造n个成对括号_GenerateParentheses_给出一个整数n,实现一个函数生成n对小括号,n对小括号的左右括弧顺序不限,但应该闭合。Givennpairsofparentheses,writeafunctiontoge
leetcode 94. Binary Tree Inorder Traversal
题目要求<pre<codeGivenabinarytree,returntheinordertraversalofitsnodes&39;values.Forexample:Givenbinarytree1,null,2,3,1
leetcode93. Restore IP Addresses
题目要求<pre<codeGivenastringcontainingonlydigits,restoreitbyreturningallpossiblevalidIPaddresscombinations.Forexample:Given&
leetcode84. Largest Rectangle in Histogram
题目要求<pre<codeGivennnonnegativeintegersrepresentingthehistogram&39;sbarheightwherethewidthofeachbaris1,findtheareaoflar
leetcode113. Path Sum II
题目要求<pre<codeGivenabinarytreeandasum,findallroottoleafpathswhereeachpath&39;ssumequalsthegivensum.Forexample:Givent
leetcode92. Reverse Linked List II
题目要求<pre<codeReversealinkedlistfrompositionmton.Doitinplaceandinonepass.Forexample:Given1>2>3>4>5>NU
leetcode 41. First Missing Positive
题目要求<pre<codeGivenanunsortedintegerarray,findthefirstmissingpositiveinteger.Forexample,Given1,2,0return3,and3,4,1,1r
leetcode45. Jump Game II
题目要求<pre<codeGivenanarrayofnonnegativeintegers,youareinitiallypositionedatthefirstindexofthearray.Eachelementinthearra
leetcode90. Subsets II
题目要求<pre<codeGivenacollectionofintegersthatmightcontainduplicates,nums,returnallpossiblesubsets.Note:Thesolutionsetmustno
已加载文章中没有匹配内容,试试其他关键词或清空搜索。