Tuesday, August 7, 2012

Double linked list using single pointer

At first I thought it's impossible . After all a pointer can point to one memory location at a time, But then I read this insightful discussion on stackoverflow.   And here is a possible solution to the problem http://everything2.com/title/Storing+a+doubly-linked+list+using+just+a+single+pointer+field

No comments:

Post a Comment