LeetCode 443 String Compression - Two Pointers (Med, Java, O(n))
443. String Compression
Algorithm Overview
The solution implements an in-place string compression algorithm using a two-pointer approach. Here's how it works:
read: scans through the original characters
write: tracks where to place the compressed o...
huanganni.hashnode.dev3 min read