Open wenima opened 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.
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.