wenima / data-structures

used for all data structure assignments
1 stars 0 forks source link

on branch dll in dbl_linked_list.py - remove unneded iteration and don't use pop and shift #56

Open wenima opened 7 years ago

wenima commented 7 years ago

pop() and shift() are not needed as we are checking the head at every iteration but we only see it once. shift shouldn't be called either and we shouldn't jump to it because we need to delete the first iteration.