Home › Forums › C Programming › Linked Lists › Reply To: Linked Lists
March 24, 2008 at 4:11 pm
#3369
Humayan
Participant
The algorithm for building the list from front to back looks correct ( I assume the constructor for List sets the Next pointer to NULL ). I would guess the problem to be in the test:
1 2 | <br /> if(freq[index]==currentNum) |
since the rest looks ok…….