My code running right ans with [7,1,5,3,6,4] while testing on leetcode but showing wrong answer on same test case on subission
Code Problem on Leetcode
Hey brother why are you taking input here. It is fine to take input on hackerblocks as the array or vector is not provided to you but here this is not the case. Here the array is given to you and do your operations on that only.
Ya, right, I was missing this. Forgot to remove it. Thanks
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.