Data-Structures-and-Algorithms
Data-Structures-and-Algorithms copied to clipboard
Error in Data-Structures-and-Algorithms/blob/master/Arrays-Implementation/arrays/main.cpp
In Data-Structures-and-Algorithms/blob/master/Arrays-Implementation/arrays/main.cpp, the get method, I think that we should test index < totalNumbers rather than index < capacity. Here is a reference: https://www.geeksforgeeks.org/how-to-implement-our-own-vector-class-in-c/.