DSA Advanced Problems

Design a Text Editor

Maintain text and a movable cursor with insertion, deletion, and bounded context queries.