Doubt in my code

Hello, here is my code :

I have already submitted my code and passed all the test cases but I have one doubt. When I was testing my code it gets some error which is present in the above code.
When in the line 19 I wrote a [1000] [ ] it gave me error. But when I changed it to a[ ] [1000] the code worked fine. Why it’s happening ?

hello @yashsharma4304
passing column number is mandatory (its a convention).

Ohkk so either I can pass both or the col ?

yeah you got it right

1 Like