Regardin min and max element in array

we can also use sorting and then find the largest and smallest. and are we allowed to use climit header file in our coding exams

@adarshsingh2k
Yes, you can use them.
Most of the exams you can import bits/stdc++.h .
and even if you can’t, you just use 2e9 or -2e9 (or see the range of the inputs) and use them accordingly.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.