here’s a link to my code .
this is not giving me any output.
here’s a link to my code .
this is not giving me any output.
yes it is SEQ on spoj
check now->
check now->
it should work
A few question i want to ask
no it is zero based indexing , look at line 113 u are inserting in empty vector so it will store elements from 0th index hence nth element will be at n-1 index
that is the reason na, test cases are independent thats why we are clearing out the previous vector so that in next iteration we get empty vectors
ok I understood
Thanks for the help
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.