HelanaNady / DataStructures

A beginner-friendly guide to learning data structures with C++
18 stars 3 forks source link

Handled an edge case in one of the insertion functions #5

Closed habibayman closed 6 months ago

habibayman commented 6 months ago

The adding from the back function didn't handle an entry of an initially empty list, leading to an access violation due to the attempt of dereferencing an empty pointer.