I was trying to solve the MIN QUERY question . I wrote the code for it which i think is correct but I am not getting the expected output. So please tell me where i went wrong.
code link-https://ide.codingblocks.com/s/203724
I was trying to solve the MIN QUERY question . I wrote the code for it which i think is correct but I am not getting the expected output. So please tell me where i went wrong.
code link-https://ide.codingblocks.com/s/203724
@akshat_jain
hello akshat,
a)
it should be ==
b) u are using 0 based indexing so make sure u subtract -1 from the given indices
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.