- 博客(5)
- 收藏
- 关注
原创 review
// 上面的是L page,接下来新建一个R page: // Copy L.P1…L.Kn−1 to a block of memory T that can hold n (pointer, key-value) pairs std::list<MappingType> virtual_node; // 归并新插入的键值和leafpage里的键值 bool inserted_newkey = false; for(int i = 0; i < leafptr..
2022-02-18 08:58:02
53
原创 二分查找左边界
#include #include using namespace std; int left_bound(vector nums, int target) { int left = 1, right = nums.size() - 1; // 搜索区间为 [left, right] while (left <= right) { int mid = left + (right - left) / 2; if (nums[mid] < target) { // 搜索区间变为 [mid+1,
2022-02-15 18:39:02
630
原创 32bit gcc 编译链接
gcc -m32 -c -fno-stack-protector a.c b.c ld -m elf_i386 -s -o ab a.o b.o
2021-12-08 15:00:57
107
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人