Question: c language please!!! How can you tako a linked list and reverso it? This is a classic data structures qustion for intervicw candidates and so

How can you tako a linked list and reverso it? This is a classic data structures qustion for intervicw candidates and so 1 want you to give it a try. Take the given starter code listed with thls assigrartat and add in the code needed to reverse the linbed list. Your algorithm should conplete in linear time and shonld not require you to build a meond list. //call your function to reverse the list fshouid work for eny list gieen the head t /print the recersed list. temp= head : while (teap te NUL.) 1 printf ( %dnm + tesp->data ) temp = temp next : return 0 1 //Define your function here At the top of your code you should have a comment section that has the following format: Author: Effort: Purpose
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
