How to replace identical consecutive characters with "signature" (RLE)?

  • 0
    Please tell me to implement the RLE task in Javascript. An interesting solution is the usual one with the help of the regular.

    console.log(getRLE("zzzzzvvvaeeerrrr") === "z5v3a1e3r4") // true

    Sorry for the arrogance, but if you still write the reverse implementation, I will be very grateful.
    JavaScript Avery Dyer, Oct 16, 2020

  • 0 Answers
Your Answer
To place the code, please use CodePen or similar tool. Thanks you!