Please help me asap

Please help me asap.

I dry run the same matrix and I made like
1->2->3->NULL
Then from 3 down call will be there to 6 and from 6 2 calls will be there one for right that will be for NULL and second one for 9.
Then 9 also will have 2 calls but both for NULL.
Then It will return to 6 then to 3 and at last it will reach to 2 and then one call for 2 is left that is downward so it will make call to 5 and 5 will again make 2 calls and there too one will be for 6 and new node will be made and prev and temp will point there.
Here I am stuck that how 2 6’s are possible and there too up and prev are pointing to different ones.

I understood some nodes will be double but I am not able to understand display function that how it will print.
Please help for that asap

@cbcao263 in display function dPtr will only move in first column and rPtr will be used to iterate the row in which dPtr is currently pointing.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.