thanks guys, anyway i worked out a logic somehow
i keep traversing the list with 2 pointers, One of them goes 2 nodes each time,the second one goes at 1 node each time till the end of the list NULL comes out
and btw am not doing any home work
am working in a software company n i needed this logic for a small part of a giant code base [
]