two test cases are not passing
testcase no. 1 and 3
please find the bugs in my code
what i am missing
two test cases are not passing
testcase no. 1 and 3
please find the bugs in my code
what i am missing
Hello @sk3657860,
There are two corrections in your code:
while(j*x <= remaining_m+(n-std -1 )*y)
You should also check for equality i.e. <=
Case:
When no. of students getting scholarship + no. of student pay additional amount = n (total number of students applied for scholarship)
You should subtract 1 from n-std
Reason:
This 1 will account for that 1 student whom you wants to add to list of students getting scholarship from those who are paying additional amount.
Modified Code:
Hope, this would help.
Give a like if you are satisfied.