Please check error in my code

Here is my code:

Note:- i have written some print statements for debugging purposes and commented out some code

u have resolved the question from ur end i hope the problem is clear

yes i have resolved the segementation fault its working perfectly for the given input and output
but still not passing the test case…see if you find anything:

No worries
its working
incase you were wondering:
i had missed a space after colon while printing…:slight_smile:

1 Like

cool
good to know u debugged it yourself

GOOD LUCK