the range for n given in problem falls under category of double int but array of size double int is not getting declared
how to declare such a long array for binary search
Out of range value of n
it is showing wrong answer on using that too
Previously you didn’t provide your code and asked only for the data type to be used, and it is correct to use long long int. There might be a flaw with your logic. Provide the cb ide link of your code here.