Find a pair with the given difference
Given an unsorted array and a number n, find if there exists a pair of elements in the array whose difference is n.
Examples:
Last updated
Given an unsorted array and a number n, find if there exists a pair of elements in the array whose difference is n.
Examples:
Last updated