Tell How To Check Whether A Linked List Is Circular ?
Answer Posted / dhayalan.n
we will store the header node into some other variable, then traverse the list, if we get null at the next part of any node, then that is not circular, otherwise we will check the next node is same as the stored node or not, if so then that is circular
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Write a program using merge () function to combine the elements of array x[ ] and y[ ] into array z[ ].
What is constructor in C++?
What is a float in c++?
What is srand c++?
Describe protected access specifiers?
What are proxy objects in c++?
Difference between delete and free.
What is meant by iomanip in c++?
What is an algorithm (in terms of the STL/C++ standard library)?
What are classes oop?
Explain the uses of static class data?
Why do you use the namespace feature?
Write a program to compute for numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the following format: Each line contains a student's first name, then one space, then ten quiz scores all on one line. The quiz scores are in whole number and are separated by one space. Your program will take it input from this file and sends it output to a second file. The data in the output file will be exactly the same as the data in the input file except that there will be one additional number (of type double) at the end of each line. This number will be the average of the student's ten quiz scores. Use at least one function that has file streams as all or some of its arguments.
what is c++
What is a constructor initializer list?