文章
用JavaScript实现功能齐全的单链表
前言前端也要搞好数据结构哦!!用JavaScript实现了个单链表,通过<codeLinkedList</code构造函数可实例化一个单链表数据结构的对象,所有的方法放到<codeLinkedList</code构造函数的原型对象上,写了暂时能想到的所有方法Gi
减小时间复杂度——欧拉的37%法则
前段时间,我兄弟背着我偷偷_脱单_了......他爹妈说神马现在该好好学习乱七八糟的......忽想起37%法则,遂与诸君分享:<blockquote<em我们可能都听过掰玉米的哲学故事:一片玉米地,你需要从里面摘一个最大的玉米。但只能摘一次,
Valid Palindrome
<pre<codepublicclassSolution{publicList<ListNode>binaryTreeToLists(TreeNoderoot){List<ListNode>resnewArrayList
988-从叶结点开始的最小字符串
前言WeeklyContest122(https://link.segmentfault.com/?enc2iB1ScZ3zxnAxdfQp1RZUw%3D%3D.QL6gfAkNULBLqH02hoDG7CpnVLlA74nZFJibol0%2F8WFkdVQ1kGVFWpw
107. Binary Tree Level Order Traversal II
Givenabinarytree,returnthebottomuplevelordertraversalofitsnodes&39;values.(ie,fromlefttoright,levelbylevelfromleaftoroot).
104. Maximum Depth of Binary Tree
Givenabinarytree,finditsmaximumdepth.Themaximumdepthisthenumberofnodesalongthelongestpathfromtherootnodedowntothefarthest
101. Symmetric Tree
Givenabinarytree,checkwhetheritisamirrorofitself(ie,symmetricarounditscenter).<pre<codeForexample,thisbinarytree1,2,2,3,4,4
100. Same Tree
Giventwobinarytrees,writeafunctiontocheckiftheyarethesameornot.Twobinarytreesareconsideredthesameiftheyarestructurallyiden
88. Merge Sorted Array
Giventwosortedintegerarraysnums1andnums2,mergenums2intonums1asonesortedarray.Note:Thenumberofelementsinitializedinnums1andnum
83. Remove Duplicates from Sorted List
Givenasortedlinkedlist,deleteallduplicatessuchthateachelementappearonlyonce.<pre<codeExample1:Input:1>1>2Output:1>
已加载文章中没有匹配内容,试试其他关键词或清空搜索。