# Category Archives: Linked List

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
Given a singly linked list and a position, delete a linked list node at the given position. Example:   Input: position = 1, Linked List =… Read More
Given a singly linked list and a position, delete a linked list node at the given position. Example:   Input: position = 1, Linked List =… Read More
Given a singly linked list and a position, delete a linked list node at the given position. Example:   Input: position = 1, Linked List =… Read More
Given a singly linked list and a position, delete a linked list node at the given position. Example:   Input: position = 1, Linked List =… Read More
Given a singly linked list and a position, delete a linked list node at the given position. Example:   Input: position = 1, Linked List =… Read More
Given two sorted singly linked lists having n and m elements each, merge them using constant space. First, n smallest elements in both the lists… Read More
Given two sorted singly linked lists having n and m elements each, merge them using constant space. First, n smallest elements in both the lists… Read More
Write a removeDuplicates() function that takes a list and deletes any duplicate nodes from the list. The list is not sorted. For example if the linked… Read More
Write a removeDuplicates() function that takes a list and deletes any duplicate nodes from the list. The list is not sorted. For example if the linked… Read More
Write a removeDuplicates() function that takes a list and deletes any duplicate nodes from the list. The list is not sorted. For example if the linked… Read More
Write a removeDuplicates() function that takes a list and deletes any duplicate nodes from the list. The list is not sorted. For example if the linked… Read More