Faculty of Engineering and Mathematical Sciences 
Not logged in (login)


This forum is provided to promote discussion amongst students enrolled in Data Structures and Algorithms (CITS2200).
RSS cloud
Jump to:


1 of 418 articles shown, currently no other people reading this forum.
Date: Fri 3rd Apr, 4:47pm


I think I've figured it out. It was a problem with the delete method - I wasn't accounting 
for the deletion of the last object in the list, I was just setting the successor as usual.

I was testing the previous and next methods to try find the problem and I found that when i 
deleted an object at the end of the list, went back one and forward one, I was pointing to 
null instead of throwing an exception.

Not quite sure why the previous method was the one that had the "error" and still not 
certain it's correct, but it seems to be.

Related articles

previous() (all 3) RSS
├─ original   Wed 1st Apr, 4:27pm, ANONYMOUS
├─ reply 1   Fri 3rd Apr, 4:08pm, ANONYMOUS
└─ THIS   Fri 3rd Apr, 4:47pm, ANONYMOUS
This Page

Program written by: [email protected]
Feedback welcome
Last modified:  3:57pm Aug 06 2020