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
Is c++ harder than java?
Name four predefined macros.
Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;
Define what is constructor?
Write an algorithm that determines whether or not an almost complete binary tree is a heap.
What is the insertion operator and what does it do?
Are strings immutable in c++?
What are built-in functions? What is the syntax for the definition?
Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort
What is pair in c++?
Explain one method to process an entire string as one unit?
Carry out conversion of one object of user-defined type to another?
Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers
Explain what you mean by a pointer.
Explain the term memory alignment?