Smart Keypad-1 , error on submitting

giving correct output but on submitting, no test case is passed.

hi @ManyaGarg00 what error are you getting on submission?

not error but on submitting no test cases are passed. It’s showing " Test cases failed"

hi @ManyaGarg00 is it showing Wrong Answer, Run Time error or Time Limit Exceeded or something else?

it is showing “wrong answer”

hi @ManyaGarg00 at 0 index there is a space there, why have you removed it from the table? Also you are skipping the 0th index, dont do that.

still, only 1 test case is passed. the second test case is showing wrong answer

@ManyaGarg00 please share the updated code

thankyou. All test cases passed.

@ManyaGarg00 dont forget to mark the doubt as resolved! :slight_smile: