why he has used
node * middleatlist(node * head)
Return type of function
as we have used build list function is there any other way to take input
@adarshsingh2k its fine no issue as most of the time input is in the form
10
1 2 3 4 5 6 7 8 9 10
for that you have to build like this only