Two Pointers
443. String Compression
Compress a char array in place: each run of a repeated character becomes the character followed by its count (digits written individually), and runs of length 1 get no number. Return the new length.…
Loading…
Compress a char array in place: each run of a repeated character becomes the character followed by its count (digits written individually), and runs of length 1 get no number. Return the new length.…
Loading…