You are viewing a single comment's thread. Return to all comments →
Faling Testcase 6,7,8
using namespace std;
Me too have encountered the same problem,I didn't know why,but I too have same problem,can someone just help us out?
You have to account for when there are fewer important tests than number of tests she's allowed to fail.
you have not taken into consideration the cases when number of unimportant cases are more than or equal to important cases
you have initialized the value of x=imp-k;
but as we can assign any value to k,therefore if k>imp :- then x will be negative and after that you have used that x in the for loop also , in which when you have used c[i] where i=x;i