Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Modernizing the DOM Tree in Microsoft Edge. Parent comment
Problem is that their solution by design contains loops.
So on each tree traversal iteration you will need to access parent:
Node* get_next_node(Node* that) { that = that->next; return that == that->parent->first_child ? nullptr : that; }
There are no comments on this comment yet.
Problem is that their solution by design contains loops.
So on each tree traversal iteration you will need to access parent: