Check whether for all pair (X, Y) of given Array floor of X/Y is also present
Given an array arr[] of size N and an integer K, denoting the maximum value an array element can have, the task is to check if for all possible pairs of elements (X, Y) where Xâ¥Y, âX/Yâ (X divided by Y with rounding down) is also present in this array. Examples: Input: N = 3, K = 5, arr[]={1, 2, 5}O