
算法
wangjunhe
这个作者很懒,什么都没留下…
展开
-
数字反转(Reverse Integer)
题目: Reverse digits of an integer. Example1:x = 123, return 321 Example2:x = -123, return -321 click to show spoilers. Have you thought about this? Here are some good questions to ask before codi...转载 2019-10-22 09:32:57 · 1411 阅读 · 0 评论 -
红黑树
一、在理解红黑树之前,先看一些二叉查找树 二叉查找树特性:左字数上所有的节点的值都小于或等于他的根节点上的值 右子树上所有节点的值均大于或等于他的根节点的值 左、右子树也跟别为平衡二叉树 举个二叉树的例子: 可以看到如果要...转载 2019-10-08 15:07:30 · 131 阅读 · 0 评论 -
算法复杂度
Common Data Structure Operations Data Structure Time Complexity Space Complexity Average Worst Worst Access Search Insertion Deletion Access Search Inse...原创 2019-10-08 16:57:51 · 72 阅读 · 0 评论