Vivek and party 1test case failed


plz rectify my code.

@mohitmahi123, Your code is correct and your answer for this test case too
Both your answer and CB answer for this test case are correct but you need to print according to CB one
So just hard code the answer for this test case
Your code is perfect

how to hard code ? i m not getting.

This is the test case you are failing
5
A
B
C
D
E
5
C A
D A
B D
E B
E C

this should be answer
A : Case #1: Vivek should drink beverages in this order: E B C D A.
your code outputs in different arrangement

ok,your mean is that for particular this test case i have to print in this order?
but what condition I applied here.to hard code this,

@mohitmahi123, your answer is correct just the ordering is different , you can do something like if n=5 print(“E B C D A”) , right now we don’t have functionality to explicitly check for answers where multiple answers are possible . the goal is to learn the concept not to score 100

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.