Write a program to reverse a linked list?
Answer Posted / jithin
reverse(Node * previous, Node * Current)
{
start = current;
if(current !=null)
{
reverse(current, current->next);
current->next = previous;
}
}
Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
write a porgram in c++ that reads an integer and print the biggest digit in the number
Which software is best for programming?
Is c++ used anymore?
What is c++ stringstream?
What is time h in c++?
Can I learn c++ without knowing c?
What are guid? Why does com need guids?
Explain "const" reference arguments in function?
How do you master coding?
What is general form of pure virtual function? Explain?
How to tokenize a string in c++?
Write about the role of c++ in the tradeoff of safety vs. Usability?
Difference between class and structure.
Do vectors start at 0?
write asingle linked list which read from two list & the do the following 1 sort the prime & nonprime num (prime should be less tn nonprime) 2 each node has a prime num followd by nonprime 3 add a new node into its sutable plce 4 erase the most three duplicated non prime num 5 find the least duplicated prime num