Out of two one test case failed, my code is https://ide.codingblocks.com/s/105546
Smart keypad , one test case failed
Plz add comments in your code so that I could understand it.
Plz… Resolve my doubt
I have modified your code a bit, i have used character array instead of strings and vector, rest code is same …
@yuktimutreja01 I didn’t asked the code. I just want to know which part of my code is wrong so that only one test case failed.
Or just tell me that one test case which my code is not able to run it.
Your code is not producing correct output in following test case : 5608
Expected output : jm t
jm u
jm v
jn t
jn u
jn v
jo t
jo u
jo v
km t
km u
km v
kn t
kn u
kn v
ko t
ko u
ko v
lm t
lm u
lm v
ln t
ln u
ln v
lo t
lo u
lo v
Your output : jmt
jmu
jmv
jnt
jnu
jnv
jot
jou
jov
kmt
kmu
kmv
knt
knu
knv
kot
kou
kov
lmt
lmu
lmv
lnt
lnu
lnv
lot
lou
lov

