- 博客(4)
- 问答 (1)
- 收藏
- 关注
原创 LeetCode之LinkedList前一百
1.Reverse Linked List反转链表Example:Input: 1->2->3->4->5->NULLOutput: 5->4->3->2->1->NULL/** * Definition for singly-linked list. * public class ListNode { * in...
2018-10-14 19:21:05 82
原创 LeetCode之Tree前100
1.Symmetric Tree给定二叉树,检查它是否是自身的镜像(即,围绕其中心对称)。例如,这个二叉树[1,2,2,3,4,4,3]是对称的:> 1 > / \ > 2 2 > / \ / \&am
2018-10-14 17:31:01 249
原创 LeetCode之Array前一百
1.TwoSumGiven an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution, and you may not use t...
2018-10-14 15:15:04 101
转载 B树,B+树
b树(balance tree)和b+树应用在数据库索引,可以认为是m叉的多路平衡查找树,但是从理论上讲,二叉树查找速度和比较次数都是最小的,为什么不用二叉树呢? 因为我们要考虑磁盘IO的影响,它相对于内存来说是很慢的。数据库索引是存储在磁盘上的,当数据量大时,就不能把整个索引全部加载到内存了,只能逐一加载每一个磁盘页(对应索引树的节点)。所以我们要减少IO次数,对于树来说,IO次数就是树的高度...
2018-10-13 17:02:42 125
空空如也
openGL运行不显示图形
2017-03-26
TA创建的收藏夹 TA关注的收藏夹
TA关注的人