Hi! I've got this structure struct *cell{int row,int column,int distance, struct cell *next}. By calling a function, I fill a linked list . The problem is that I cannot find how to delete the nodes that have the same row and column.Let me provide an example. Let's say that the linked list has the following nodes:

6 4 0

5 4 0

6 5 0

6 4 1 and so on... in this case,as we see, the first (6 4 0) and the last node (6 4 1) have the same row and column number (I don't care about the distance), so I must delete the last node.Can you show me how to do that?

thank you in advance!