Topic — Add New » Posts Last Poster Freshness
Adobe Interview Question for Software Engineer/Developer (Fresher) 12 guest 11 months

given a link list of integers delete all nodes which have value smaller than the value of any following nodes for example:-

7 4 5 2 3 6
answer will be 7 6

Adobe
All possible n pairs of balanced parentheses using linked list 2 Sambasiva 12 months

Write a recursive function to generate all possible n pairs of balanced parentheses using linked list.

Interview Question about Algorithms 6 WgpShashank 1 year

How to locate loop in doubly linked list?

[closed] Loop in Doubly Linked List 2 Sandeep 1 year

How to detect loop in Doubly Linked List?

Amazon Interview Question for Software Engineer/Developer (Fresher) 2 Cracker 1 year

There is a doubly linked list with next pointer and arbitrary pointer( points to an arbitrary node in list). You have to make a copy of the linked list and return. In the end original list shouldn't be modified. Best time O(n).

Amazon
Amazon Interview Question 4 1 year

Given a linked list, write a function to reverse every[b] alternate k nodes (where k is an input to the function) from the end of the linked list[/b] in an efficient way. Give the complexity of your algorithm. Example: Inputs: 1->2->3->4->5->6->7->8->9->10->NULL and k = 3 Output:1->4->3->2->7->6->5->10->9->8->NULL

[closed] Amazon Interview Question 8 geeksforgeeks 1 year

Given a linked list, write a function to reverse every [b]alternate k nodes[/b] (where k is an input to the function) in an efficient way. Give the complexity of your algorithm.
Example:
Inputs: 1->2->3->4->5->6->7->8->9->NULL and k = 3
Output: 1->2->3->6->5->4->8->7->9->NULL.

circular linked list 2 kartik 1 year

algorithm or code segment for locating the nth successor of an item in a circlar linked list (the nth item that follows the given item in the list) in c++