See the below thread comment which will help you understand where your code must have gone incorrect
Your code for cost is incorrect for the ith example, refer the below screenshot where it mentions the right code.
Regards
DP
See the below thread comment which will help you understand where your code must have gone incorrect
Your code for cost is incorrect for the ith example, refer the below screenshot where it mentions the right code.
Regards
DP