Hello,
I am getting this Segmentation fault error when i submit code otherwise it runs perfectly fine on ideone also. I don’t know which scenario causes this. please take a look at my code.
link to my code
Just let me know where i am wrong.
Thank You.
Honey [if I can said so ] : ch[8] !?
For a given positive integer K of not more than 1000000 digits, … [=== ch[8] !? ]
yes…
is that right? @narbej
is it like ch[1000000]???
Okz👍 i got it… Thank you @narbej I have to refine my code and logic…
hey @narbej I changed my code. But when uploaded. It says wrong answer, here is the link to my new code
please tell me which test case i should check.
I don’t know, but I think you must rethinking litle more Test? For example:
19 29 … 89
Accepted finally. The char Array was causing problem. if input >> 99999 and 9 then output was 1000001 and 1100001
It was overwriting type.
Thank you so much @narbej