Ask your own question, for FREE!
Computer Science 22 Online
OpenStudy (anonymous):

Data structure : Can any one explain Geven a pointer to a linke list node, explain how we will delete the same node

OpenStudy (anonymous):

This depends on if it's a single or double linked list. Which is it?

OpenStudy (anonymous):

first explain your question whether you wanted to delete any middle node or...?

OpenStudy (anonymous):

you can simply delete it by delete statement

OpenStudy (anonymous):

typedef struct nodeSLL { int data; struct nodeSLL *next; } LIST singly linked list ^^ typedef struct nodeDLL { int data; struct nodeDLL *prev; struct nodeDLL *after; } LIST doubly^^ as for your delete im not sure if you want at the beginning, specific location, or the end and im to lazy to type all three so once you reply i can help

OpenStudy (anonymous):

or if you want SLL or DLL deletion

OpenStudy (anonymous):

@Cynosure-EPR @Tyler1992 @03225186213 my question is for SLL it states that if you have address of any random node of that linked list and you are said to delelte that node itself... how it will be done... as "|dw:1381690327761:dw|we will lose the next node address"

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!