文章
【leetcode】99. Recover Binary Search Tree 复原有两个节点交换后的二叉排序树
1.题目Twoelementsofabinarysearchtree(BST)areswappedbymistake.Recoverthetreewithoutchangingitsstructure.Note:Asolutionusing
【leetcode】98. Validate Binary Search Tree 二叉树是否是中序有序的
1.题目Givenabinarytree,determineifitisavalidbinarysearchtree(BST).AssumeaBSTisdefinedasfollows:Theleftsubtreeofanode
【leetcode】94. Binary Tree Inorder Traversal 二叉树的中序遍历
1.题目Givenabinarytree,returntheinordertraversalofitsnodes&39;values.Forexample:Givenbinarytree1,null,2,3,1<pre<code\
【leetcode】61. Rotate List
1.题目Givenalist,rotatethelisttotherightbykplaces,wherekisnonnegative.Forexample:Given1>2>3>4>5>NULLand
【leetcode】57. Insert Interval
1.题目Givenasetofnonoverlappingintervals,insertanewintervalintotheintervals(mergeifnecessary).Youmayassumethattheintervals
学习javascript数据结构(一)——栈和队列
前言只要你不计较得失,人生还有什么不能想法子克服的。原文地址:学习javascript数据结构(一)——栈和队列(https://link.segmentfault.com/?encXVLdVGr9A7H5g95%2Bf2mUPA%3D%3D.I3brvdtIoSbln
【leetcode】49. Group Anagrams 字母组合相同的单词聚合
1.题目Givenanarrayofstrings,groupanagramstogether.Forexample,given:&34;eat&34;,&34;tea&34;,&34;tan&34;,&34;ate&34;,&34;
【leetcode】25. Reverse Nodes in k-Group 链表按K分段逆序
1.题目Givenalinkedlist,reversethenodesofalinkedlistkatatimeandreturnitsmodifiedlist.Ifthenumberofnodesisnotamultiple
【leetcode】24. Swap Nodes in Pairs 链表奇偶节点交换
1.题目Givenalinkedlist,swapeverytwoadjacentnodesandreturnitshead.Forexample,Given1>2>3>4,youshouldreturnthelist
【leetcode】21. Merge Two Sorted Lists 两个有序链表的归并有序
1.题目Mergetwosortedlinkedlistsandreturnitasanewlist.Thenewlistshouldbemadebysplicingtogetherthenodesofthefirsttwolist
已加载文章中没有匹配内容,试试其他关键词或清空搜索。