Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 327 Bytes

File metadata and controls

15 lines (10 loc) · 327 Bytes

EP.3 String Encode

Write a program that takes a string and encode it that the amount of symbols would be represented by interger and the symbol.

Input : AAAABBBCCDAAA
Output : 4A3B2C1D2A

Input : PHP
Output : 1P1H1P

Input : CCoding
Output : 2C1o1d1i1n1g

Youtube Video: https://youtu.be/v6cs2pMw_18