You have to take input of an array of integers, but you will not be provided the number of input(n) you can put. But directly the input array. This issue can be faced in many coding contests and candidates can panic about how to take input. So, the solution to this problem can help many people.
@Nikhil-2002 please assign this issue to me. I genuinely feel this issue might be faced by many people during many coding contests and Online assessments. So, I want to contribute my solution to this issue.
You have to take input of an array of integers, but you will not be provided the number of input(n) you can put. But directly the input array. This issue can be faced in many coding contests and candidates can panic about how to take input. So, the solution to this problem can help many people.