Input : abcdfs
My output to the program is: abcdfs
Can anyone explain it? For this one case, I had to unlock the test cases.
Input : abcdfs
My output to the program is: abcdfs
Can anyone explain it? For this one case, I had to unlock the test cases.
The output for abcdfs should be a1b1c1d1f1s1. Check the sample also. So this case you have to handle.
If you have any doubt, lemme know!
then for aabccds -> a2bc2ds? why not a2b1c2d1s1?
@Kunal.Verma Yes bro your code is producing wrong answer even for sample, and giving 0 score, maybe there was some issue with backend at that time, that you got 75.
So handle the case.
@A17CRX0016 I am posting a link, https://drive.google.com/drive/folders/1J9Ya24BdQk4JuU4DjienHCmaQ1twnq1I?usp=sharing
Please have a look on the screen shots and then we will discuss what is happening and what is not.
Thanks.
@Kunal.Verma Firstly post the screenshots here only or make the access public, secondly I have checked your code, I have access to your submissions.
For sample your output
a3b2c2ds
Expected Output
a3b2c2d1s1
@A17CRX0016, I really doubt that, what is the expected Output. I donβt see β1β after βsβ in the expected output.
@Kunal.Verma Ok bro, there are actually two questions with same name. I was checking the other one.
For this one, test your code for this input
aaaaassssddddffaaagggssfffgzx
expected :- a5s4d4f2a3g3s2f3gzx
your output :- a8d4f5g4s6xz
You have to maintain the order of characters, see the expected one. you are counting all and then writing the string in kinda ordered manner.