Microsoft Interview Report
- 0of 0 votes
AnswersGiven a linked list of numbers. Swap every 2 adjacent links.
- Piyusha Dani May 12, 2010
For eg if a linked list given to you is- a->b->c->d->e->f
O/p expected- b->a->d->c->f->e
Every 2 alternate links have to be swapped. Pls note that values stored in the link list have to remain at their previous locations only. Values are not to be swapped. Only links are to be swapped.| Report Duplicate | Flag | PURGE
Microsoft Software Engineer / Developer Algorithm - 0of 0 votes
AnswersYou have been given a linked list of numbers. The size is not known. You need to find out if the number stored in the list is a palindrome in the best possible optimized manner.
- Piyusha Dani May 12, 2010 in -| Report Duplicate | Flag | PURGE
Microsoft Software Engineer / Developer Algorithm
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.