my code is giving error in first case
Help me out in this problem
I am seeing your codeā¦
Have you submitted it on leetcode?
This problem says in Input Format
First line contain T test cases. The following T lines contains a String and a integer k each.
And the way you are taking input is taking n k then n elements. Correct this one. And also add an endl line for output format.
Okay so you have raised different question.
I would request you to post another doubt so that I can have link to that question and mark this doubt as resolved.