Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace LinkedList with ArrayList (#13016)
Motivation: ArrayList is more efficient than LinkedList in the space cost. ArrayList is almost as efficient as LinkedList in the time cost of tail insertion, which are the practical use cases of the two lists I modified. Modification: Replace LinkedList with ArrayList. Result: Less space cost. Co-authored-by: Norman Maurer <norman_maurer@apple.com>
- Loading branch information
1 parent
d24defc
commit 3bff0be
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters