-
fn pop(&mut self) -> Option {
if self.binary_tree.is_empty() {
return None;
}
if self.binary_tree.len() > 1 {
let element = self.binary_tree.…
-
![pointer](https://user-images.githubusercontent.com/8346252/27064393-b2a58e8e-5029-11e7-9f2d-bd29f066a322.png)
原来的代码是:
heap.cpp
`heap->tree = temp`
改成
`heap->tree = &temp;;//error:temp`
这样才不会报错…
-
The best repro case was found with https://github.com/includeos/IncludeOS/pull/2251, preserved until fixed in https://github.com/alfreb/IncludeOS/tree/memory-ghost-repro . On that branch, starting at…
-
In the document about PPtr, it is mentioned that the target object should be allocated through heap.
However, in the low-level programming, many objects could be allocated without using heap.
I…
-
The heap.png image in the readme (https://raw.githubusercontent.com/kdn251/interviews/master/images/heap.png) shows a tree that does indeed respect the heap order property. The problem is when you men…
-
### Describe the Bug
Making two large allocations, then dropping them in the order they were allocated leaks memory in wee_alloc, but not in default allocator.
### Steps to Reproduce
## Nativ…
-
Quick search in your blog doesn't show posts about the subject.
3 hours ago, I got the heap that is 2x faster than `qsort()` as a sorter: https://github.com/alantudyk/simd_x/tree/master/16-ary_heap…
-
This field indicates the type of B-tree:
Value | Description
-- | --
0 | This B-tree is used for testing only. This value should not be used for storing records in actual HDF5 files.
1 | This B-tree …
-
### Describe the bug
It's been a while since we've checked the renamed components. @beaioun, @cgchinmay, and I will be gathering changes from the renaming-components and rename-provision branch and…
-
Add support for writing PST files.
- Write header
- Write header root
- Write block and node B-Trees
- Write B-Tree on Heap
- Write Heap-on-Node
- Write local descriptors (B-Tree nodes pointing to ot…