heap-data-structure/fibonacci-heap

View on GitHub
src/list_reset_parent.js

Summary

Maintainability
A
0 mins
Test Coverage
export default function list_reset_parent(children) {
    let next = children;

    do {
        const x = next;
        next = x.next;
        x.parent = null;
    } while (next !== children);
}