Maximum and minimum element in an array

why the 2nd test cases is not passing in hackerblock however the code seems to be correct only.

save your code at


and send the link generated
so that i can check your code

may be this will happens due to constraints
send me link of code also
also there is no need to store nos

for the next time
instead of sending code and question link you can also ask doubt on the question which you have to ask so that we can see your submission and qusetion as well

https://hack.codingblocks.com/app/practice/2/485/problem

your code is correct
error is with checker
which is now updated try now it will pass all testcase

i hope this help
if you have more doubts regarding this feel free to ask
if your doubt is resolved mark it as resolved from your doubt section inside your course

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.