Mridul-1-Sharma / data_structures_algos

Contribute to this repository with valid pull request to Hacktoberfest 2022 and earn awesome swags & T-shirts. This is a beginner friendly Project.
MIT License
6 stars 27 forks source link

implement a linked list based on an dynamic array #43

Closed JunJul closed 1 year ago

JunJul commented 1 year ago

I set up the arrayList class with template, so we can change any data type that we want The biggest difference is the resize between a linked list and an array A linked list is dynamic, so we don't have to resize the list An array has to be resized when out of the size, and this costs O(n) runtime.