You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replaced if else conditionals with try except suite in order to catch IndexErrors if self.heap[1] is attempting to subscript and index out of bounds.
In response to issue joeyajames#108.
Python/LinkedLists/LinkedList0.py
Line 24 in ba3e6e6
User is given flexibility to either create linked list with root as None or with a root node given by them.
i.e. size could be 0 or 1
If applicable:
User can also pass root that already has more next nodes.
i.e. size could be n
But, initial size is always set as 0 instead of calculating and setting it as per above logic
The text was updated successfully, but these errors were encountered: