why is this code showing wrong answer ?
though the output seems to be ok https://ide.codingblocks.com/s/98786
💡 Digital Dictionary
Hi you need to ignore the cases and then attempt the question
For eg, Pe and pe both are prefix to peter
I guess not
4
pet
PeTer
rat
rack
5
Pe
pet
r
rac
rat
is giving
No suggestions
pet
peter
rack
rat
rack
rat
as ouput… Please check that case of queries is also not considered,caps, no caps should not matter in either case