Skip to content

Category Archives: Linked List

Write a function to count the number of nodes in a given singly linked list. For example, the function should return 5 for linked list… Read More
Write a function to count the number of nodes in a given singly linked list. For example, the function should return 5 for linked list… Read More
Write a GetNth() function that takes a linked list and an integer index and returns the data value stored in the node at that index… Read More
Given a singly linked list L0 -> L1 -> … -> Ln-1 -> Ln. Rearrange the nodes in the list so that the new formed… Read More
Given a singly linked list L0 -> L1 -> … -> Ln-1 -> Ln. Rearrange the nodes in the list so that the new formed… Read More
Given a singly linked list L0 -> L1 -> … -> Ln-1 -> Ln. Rearrange the nodes in the list so that the new formed… Read More
Given a singly linked list L0 -> L1 -> … -> Ln-1 -> Ln. Rearrange the nodes in the list so that the new formed… Read More
Given a Singly Linked List, write a function to delete a given node. Your function must follow the following constraints:  It must accept a pointer… Read More
Given a Singly Linked List, write a function to delete a given node. Your function must follow following constraints: 1) It must accept a pointer to… Read More
Given a Singly Linked List, write a function to delete a given node. Your function must follow the following constraints:  It must accept a pointer… Read More
Given a Singly Linked List, write a function to delete a given node. Your function must follow following constraints: 1) It must accept a pointer to… Read More
Following is a typical recursive implementation of QuickSort for arrays. The implementation uses last element as pivot.  C++ /* A typical recursive implementation of Quicksort… Read More
Following is a typical recursive implementation of QuickSort for arrays. The implementation uses last element as pivot.  Java /* A typical recursive implementation of    Quicksort… Read More
Following is a typical recursive implementation of QuickSort for arrays. The implementation uses last element as pivot.  Python3 """A typical recursive implementation of Quicksort for… Read More
Following is a typical recursive implementation of QuickSort for arrays. The implementation uses last element as pivot.  Javascript <script> /* A typical recursive implementation of… Read More

Start Your Coding Journey Now!