#prodevelopertutorial
Explore tagged Tumblr posts
Text
Day 8 Competitive Programming Coding Question:
Given an unsorted array, and a key. Find 2 elements such that the difference between the elements is equal to the key.
Example:
Input:
{4, 2, 5, 8, 21, 34, 10}
key = 24
Output:
Pair found (34, 10)
Solution:
Given an unsorted array, and a key. Find 2 elements such that the difference between the elements is equal to the key. - ProDeveloperTutorial.com
0 notes