Is this: to define the Node insertNode,
InsertNode. NextNode doesn't know what should I do to make insertNode this insert node can be inserted into the corresponding node position,
Here, please ignore the standardization of the code I wrote, thank you teach, if there is a way, it is best to post code, thank you,
CodePudding user response:
Already exists two nodes, for example, a, b, a.n extNode=b, b.n extNode=null1, insert the node c, citigroup extNode=a, list for c, a, b,
2, insert the node c, citigroup extNode=null, list for a, b, c,
3, other, omitting dozens of words here,
CodePudding user response:
Assumptions, the original is a - c node, now insert node bThat should be modify a node nextNode pointing b
And then, b nextNode to a c
CodePudding user response: