gfg-potd

Find All Triplets with Zero Sum

gfg-potd

Given an array arr[], find all possible indices [i, j, k] of triplets [arr[i], arr[j], arr[k]] in the array whose sum is equal to zero. Return indices of […]

Is Linked List Length Even?

gfg-potd

Given a linked list, your task is to complete the function isLengthEven() which contains the head of the linked list, and check whether the length

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

Triplet Family

gfg-potd

Given an array arr of integers. Find whether three numbers are such that the sum of two elements equals the third element.

Alternative Sorting

gfg-potd

Given an array arr of distinct integers. Rearrange the array in such a way that the first element is the largest and the second

Modify the Array

gfg-potd

Given an array arr. Return the modified array in such a way that if the current and next numbers are valid numbers and

Scroll to Top