Given an array X, find tuples (xi, xj) such that j>i and xj is the immediate number greater than xi in the given array?
Ex Problem: X: {5, 4, 1, 3, 7}
Solution:
{5, 7}
{4, 7}
{1, 3}
{3, 7}
1 year ago
Feel free to contribute, however it will be moderated to curb spams.
Given an array X, find tuples (xi, xj) such that j>i and xj is the immediate number greater than xi in the given array?
Ex Problem: X: {5, 4, 1, 3, 7}
Solution:
{5, 7}
{4, 7}
{1, 3}
{3, 7}
No comments:
Post a Comment