Please help me on
1) C++ pgm to reverse a linked list
2) Given 2 lists L1 & L2, create a 3rd list which is intersection of L1 & L2
3) Given an infix evaluate it without converting it to postfix (hint use 2 stacks)

Recommended Answers

All 2 Replies

We arent going to do your homework for you.

Are you allowed to use third party list and set libaries e.g from the STL? or do you have to make your own?

Hint: to reverse a linked list, push all the nodes onto a stack, then pop them all off again.

No i m not allowed to use third party STL....simple c++ statements only

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.