Author name: Admin

Kth distance

gfg-potd

Given an unsorted array arr and anumber k which is smaller than size of the array. Find if the array contains duplicates within k distance. Examples: […]

Swap and Maximize

gfg-potd

Given an array arr[ ] of positive elements. Consider the array as a circular array, meaning the element after the last element

Pairs with difference k

gfg-potd

Given an array arr[] of positive integers. Find the number of pairs of integers whose difference equals a given number k.Note: (a,

Quick Sort on Linked List

gfg-potd

You are given a Linked List. Sort the given Linked List using quicksort.  Examples: Input: Linked list: 1->6->2Output: 1->2->6Explanation:After sorting the

Scroll to Top