Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def remove_from_end(fhead, ftail):
- if fhead == ftail:
- fhead = None
- item = fhead
- while item[next] != ftail:
- item = item[next]
- item[next] = None
- ftail = item
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement