String Compression
Explore the two pointers technique for string compression by modifying the character array in place. Understand how to represent consecutive characters with counts, handle multi-digit lengths, and return the updated array length while using constant extra space.
We'll cover the following...
We'll cover the following...
Statement
Given an array of characters, chars, compress it in place according to the following rules: ...