This is my solution. Please tell me what is wrong in this.
Please indent your code properly. My post was wrong.
I think that’s not the case - it just looks like it is because the indentation is so screwy He reads in all the input for a testcase and then, after that, he performs a single search through it.
That part’s actually fine - it’s the fact the he’s reading in
k in the wrong order that’s the problem
Yikes, I made a lot of mistakes. This is what happens when I try to read unindented code.
Yet more evidence for your assertion, here
thanks a lot! Got it! I’m a beginner and I’ll keep indentation in mind.