dsa8 min read
String Compression — Run-Length Encoding and the In-Place Two-Pointer Trick
String Compression (LC 443) is a deceptively careful two-pointer problem with strict in-place memory requirements. Master the read-write pointer pattern and you have the blueprint for in-place array transformations across many FAANG questions.
Read →