Some topics that I think are the trickiest:
- Iterating a linked list
- You can with a for loop, however, the simplest (in my opinion) is:
Node *current = head; // make a copy to preserve head
while (current != NULL) {
// do stuff with current
}
#include <iostream> | |
#include "exceptions.h" | |
#include "dll.h" | |
#include "stack.h" | |
#include "queue.h" | |
#include <sys/time.h> | |
using namespace std; |
Some topics that I think are the trickiest:
Node *current = head; // make a copy to preserve head
while (current != NULL) {
// do stuff with current
}
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object: