My issue
i am unable to understand this problem
My code
#Once the observations / logic is clear, click on 'Next' to continue
Learning course: Beginner DSA in Python
Problem Link: CodeChef: Practical coding for everyone
i am unable to understand this problem
#Once the observations / logic is clear, click on 'Next' to continue
Learning course: Beginner DSA in Python
Problem Link: CodeChef: Practical coding for everyone
@nikile
Plzz refer the following solution for better understanding of the logic and implementation.
# Update the '_' in the code below to solve this problem
N = 10
M = 10
if N <= M:
print('We need to buy',N,'shoes')
else:
print('We need to buy',2*N - M,'shoes')
N = 15
M = 10
if N <= M:
print('We need to buy',N,'shoes')
else:
print('We need to buy',2*N - M,'shoes')