The problems are moved to practice section. To easily get to the practice version of problem-
1)Click on weblink 2)remove the part “/MAY17” 3) HIT enter.
Regarding editorials, forum users cannot comment anything. Try mailing codechef about it, or try to ask the question as doubt here, we will surely help!
Depends…only @admin can provide any information on it, and its advised to mail them for this. However, i case you need an editorial urgently, one of the discuss members would love to write one. Just ask once
Well. I feel it can cause run time error due to “out of index” thing. We used this method in C, but there C was an array of char (length pre defined).
Here, we dont know length if string but we are making changes at i th index. Remember that string also gives out of index error just like array (eg - if arr[n+5] gives runtime error, then so will s[n+5]. Faced these issues during contests.
Treating it similar to array, i think you will get an error. But s=s+ch is different. It says “whatever be s, add ch to its end” , so theres no scope of going out of index here.
Can you please check once the test cases provided by fellow members to other people who got WA? Have a look at similar questions and the errors, and then comment here if help is still needed. I will then convert it to a question (This question is being repeatedly asked, hence my request to have a check )
You dont need this thread to ask question, you have enough karma to create one on your own. Just asking for confirmation- You want this answer to be converted into an independent question?