+ 36
🌹🌹🏆STRING🏆CHALLENGE🏆🌹🌹
String Compression(Run Length Encoding(RLE)) Input. :: hhhhyyymmdyypp output :: h4y3m2d1y2p2
32 Answers
+ 21
https://code.sololearn.com/cZV8IMCG4xRg/?ref=app
+ 14
My try with streams
https://code.sololearn.com/cncIw1KIn5Km/?ref=app
+ 13
This is my code in c++
https://code.sololearn.com/czbav199FNmN/?ref=app
+ 13
Here's my try.
https://code.sololearn.com/cXTZLh7AwUHP/?ref=app
+ 11
there we go (:
https://code.sololearn.com/c4lb3lPzKcSI/?ref=app
+ 10
New in python.. but still tried.. 😃😃
https://code.sololearn.com/cb6fhOpjPSiZ/?ref=app
+ 8
My code, before morning coffee 😉
https://code.sololearn.com/c8r9mKjeTmeY/?ref=app
+ 8
https://code.sololearn.com/cnag4n9EItwS/?ref=app
+ 7
Here is mine😀
https://code.sololearn.com/cY6u7Bpza2o2/?ref=app
+ 7
https://code.sololearn.com/cQ03zU7ioRJM/?ref=app
+ 7
JavaScript (without RegExp):
https://code.sololearn.com/WuN10L7s2xhZ/?ref=app
+ 6
+ 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.
+ 5
Run DecoMpression Coding, aka Run Dmc : https://m.youtube.com/watch?v=4B_UYYPb-Gk&t=32 (starts at 0:33)
+ 5
Its said in the description: „compression“
+ 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....
+ 5
The first one on js.
https://code.sololearn.com/WwVE82mJhLwJ/?ref=app