Implement a function that returns the 5th element from the
end in a singly linked list of integers in one pass.

Answer Posted / vrushali

In whatever the case , we require to know the no of nodes in
the LL. As there is no way to know the total no of nodes
without traversing the LL.

Please coorect me if I am wrong.

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is bss in c?

791


Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014  Npu university

1793


Write a program to print fibonacci series using recursion?

815


What's a good way to check for "close enough" floating-point equality?

837


Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.

1261


What is 1d array in c?

840


Explain what is the concatenation operator?

821


Why structure is used in c?

806


How do you convert strings to numbers in C?

918


How can you return multiple values from a function?

825


What is structure in c language?

820


What math functions are available for integers? For floating point?

846


What 'lex' does?

921


What is NULL pointer?

854


What is void c?

770