Cant understand why 2 test cases are failing.
String Compression
@Rishabh3699 You do not have to sort in this questions.
Consider a test case:
sskkkkkkwaerrtss
Expected Output:
s2k6w1a1e1r2t1s2
Your Output:
a1e1k6r2s4t1w1
Hope this helps
Cant understand why 2 test cases are failing.
@Rishabh3699 You do not have to sort in this questions.
Consider a test case:
sskkkkkkwaerrtss
Expected Output:
s2k6w1a1e1r2t1s2
Your Output:
a1e1k6r2s4t1w1
Hope this helps