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