4 ms·
In that case, it would be difficult for the programmer to reason about the memory usage of their use of substring(). This change lets programmers not worry abo
by mafuyu 13y ago
In that case, it would be difficult for the programmer to reason about the memory usage of their use of substring().
This change lets programmers not worry about the implementation of substring() and memory leaks in return for linear runtime complexity.
- wfunction 13y agoHow would it be difficult to reason? You know you're never off by more than a factor of 2 (or whatever factor is used), just like with an ArrayList.