Can u help me with my code
satyam can u tell me what logic u r trying to apply?
i have commented out my approach.please have a look to it
the problem is in ur insertT function
once try to find it
if not then reply i will tell u then

insertT function looks completely fine to me,please help me out quickly
ooh i found out my mistake thankyou sir
sir i got the answer but i have one doubt in 34th line,previously i pointed tail->next=head;
it gave me wrong answer ,when i changed it to somhing else it gav right ans,can you explain me the reason e ret
everything else was fine no futhur problem in code
i have commented where code is wrong and corrected it
check this