获得徽章 0
map是一个key-value的数据结构,又称为字段或关联数组.Golang自带的map是哈希表
评论
- defer先不执行,等到函数快要释放的时候,defer执行顺序遵从栈的顺序,先进后出
-
评论
为了防止树的退化,人们发明了Self-balancing binary search tree,自平衡的二叉搜索树
评论
bST 随意插入节点的时候,可能会导致时间复杂度退化,例如有序地插入一组数的时候,就会退化成单链表。
评论
In computer science, a binary search tree (BST), also called an ordered or sorted binary tree, is a rooted binary tree data structure with the key of each internal node being greater than all the keys in the respective node's left subtree and less than the ones in its right subtree. 二叉搜索树!
展开
评论
Go 语言被设计成一门应用于搭载 Web 服务器,存储集群或类似用途的巨型中央服务器的系统编程语言。
评论
IDC的全称是International Data Corporation(官网地址是www.idc.com),中文就直接翻译为国际数据公司,成立于1964年,是IDG(国际数据集团)的全资子公司。
评论
C语言的结构体有字节对齐特性,会依照所有基本类型的最大长度开辟内存空间,不能跨字节存储,首地址必须是本身长度的倍数,这样做是为了方CPU读取,是一种空间换时间的方法。
评论
1. Non-recursive, using an explicit stack of pointer that store the
next array partition to sort. To save time, this maximum amount
of space required to store an array of SIZE_MAX is allocated on the
stack. Assuming a 32-bit (64 bit) integer for size_t, this needs
only 32 * sizeof(stack_node) == 256 bytes (for 64 bit: 1024 bytes).
Pretty cheap, actually.
C语言的快排底层用的是栈结构,弃用递归来加速。
展开
评论
01背包和完全背包是非常类似的问题,01背包的特点是每种物品最多只能取一个,而完全背包每种物品都可以任意取。
评论
在C++中,多继承会导致类继承了多个基类,可能存在同名虚函数的情况,出现二义性。如何处理二义性?
评论
下一页
个人成就
文章被阅读 564
掘力值 92
收藏集
0
关注标签
10
加入于