3 ms·
To be fair, sometimes you have to write a trie or DFA or some other linked data structure. However, if one is willing to deal with the possibility that the _ne
by jopsen 9y ago
To be fair, sometimes you have to write a trie or DFA or some other linked data structure.
However, if one is willing to deal with the possibility that the _next_ pointer can be null, then isn't reference counting and with weak references perfectly fine?