Wrong answer please help

I don’t know where i am doing mistakes please comment that line which is incorrect

while reading the strings you need to start from the next line after reading the t value ,right now your code is reading the first string as empty .
so just move to nextLine and then start reading input string for each t
also it’s Not Duplicates
if this solves your doubt please mark it as resolved and rate as well :slight_smile:

1 Like

Solved mam , Thank you :smile: :smile:

:slight_smile: please mark your doubt as resolved

1 Like

Done mam… :blush:

1 Like