6 ms·
Reference counting is a form of garbage collection. Since the problem is readily solvable with any garbage collector (just make substrings point to the parent s
by pcwalton 11y ago
Reference counting is a form of garbage collection. Since the problem is readily solvable with any garbage collector (just make substrings point to the parent string), it's readily solvable with reference counting.