Task:“Compute the sum of all the values in the nodes of a single linked list”
The only thing is needed to solve this problem is linked list tr ...
Search results for linked list
Calculate length of the linked list
Posted by aleksin
This problem can be easily solved by using simple recursion and again creates a basis for solving subset of related coding problems.
Possible soluti ...
Reverse a Singly Linked List
Posted by aleksin
You are asked to write a function Node Reverse(Node head) which has a pointer to the head element of the linked list as a parameter and need to revers ...
Linked lists allow only sequential access to elements O(n) while arrays allow random access O(1). Linked lists requires an extra storage for reference ...
What is Linked List?
Posted by aleksin
Linked list is a linear collection of Self-Referential class objects, called nodes, connected by reference links. Many people tend to think of it as o ...
“Write functions Insert and Remove which add and remove nodes from ordered single linked list based on the Node value”
Operations of insertion ...
There are number of ways to solve this problem and it is really good opportunity to showcase your problem solving skills and knowledge of common data ...
“Write a function which will print values from the single linked list in the reverse order in O(n) time. No changes to the list can be made and no a ...
Saved Stories
Common Interview is a place to help people keep up with the latest trends in job interviewing. You can interact by asking interview questions or by providing answers and ratings. Choose from thousands behavioural, technical, testing or program management questions and interview puzzles.
