+ 36

🌹🌹🏆STRING🏆CHALLENGE🏆🌹🌹

String Compression(Run Length Encoding(RLE)) Input. :: hhhhyyymmdyypp output :: h4y3m2d1y2p2

21st Jan 2018, 6:22 AM
Prabha_I
Prabha_I - avatar
32 Answers
21st Jan 2018, 7:51 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 21
https://code.sololearn.com/cZV8IMCG4xRg/?ref=app
21st Jan 2018, 7:58 AM
Hatsy Rei
Hatsy Rei - avatar
22nd Jan 2018, 9:51 AM
David Akhihiero
David Akhihiero - avatar
21st Jan 2018, 8:49 AM
VISHAL SRIVASTAVA
VISHAL SRIVASTAVA - avatar
28th Jan 2018, 1:40 PM
Si Ogn
21st Jan 2018, 9:07 AM
Jeremy
Jeremy - avatar
+ 10
New in python.. but still tried.. 😃😃 https://code.sololearn.com/cb6fhOpjPSiZ/?ref=app
21st Jan 2018, 1:41 PM
Md. Nafis Ul Haque Shifat
Md. Nafis Ul Haque Shifat - avatar
21st Jan 2018, 2:53 PM
Rstar
Rstar - avatar
+ 8
My code, before morning coffee 😉 https://code.sololearn.com/c8r9mKjeTmeY/?ref=app
21st Jan 2018, 8:53 AM
davy hermans
davy hermans - avatar
+ 8
https://code.sololearn.com/cnag4n9EItwS/?ref=app
22nd Jan 2018, 2:41 PM
Nashat
Nashat - avatar
22nd Jan 2018, 6:47 AM
Zoetic_Zeel
Zoetic_Zeel - avatar
+ 7
https://code.sololearn.com/cQ03zU7ioRJM/?ref=app
22nd Jan 2018, 8:16 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 7
22nd Jan 2018, 2:59 PM
Vladislav Tikhiy (SILENT)
Vladislav Tikhiy (SILENT) - avatar
21st Jan 2018, 9:47 AM
VcC
VcC - avatar
+ 6
https://code.sololearn.com/cTzAfvq28D5u/#py The efficiency is 25-35%. With zlib the efficiency is even 57-62%! This code squizzes the maximum out of the string.
21st Jan 2018, 7:16 PM
Serge Gerodes
Serge Gerodes - avatar
22nd Jan 2018, 11:36 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 5
Run DecoMpression Coding, aka Run Dmc : https://m.youtube.com/watch?v=4B_UYYPb-Gk&t=32 (starts at 0:33)
21st Jan 2018, 1:32 PM
VcC
VcC - avatar
+ 5
Its said in the description: „compression“
21st Jan 2018, 10:06 PM
Serge Gerodes
Serge Gerodes - avatar
+ 5
@martin well the "1" could be ignored. But agree multiple letters are not so frequent that you save a lot withthis. It is more a learning exercise....
21st Jan 2018, 10:14 PM
VcC
VcC - avatar
21st Jan 2018, 10:45 PM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar