Compress String using Javascript
I checked for the question internet but didn't find the question to get it.
Compress a given string aacccddd to a2c3d3
Solution
function compressString(vals) {
let count = 1;
let checkVal = vals[0];
let compressedVal = '';
for (let i = 1; i...
blog.makeinfo.co1 min read