Leetcode 2296. Design a Text Editor
Implement a text editor with a movable cursor that supports inserting text at the cursor, deleting up to k characters to the left (backspace), moving the cursor left/right by k, and returning up to the last 10 characters to the left of the cursor; design a data structure to maintain and update the cursor position and surrounding text efficiently.
Asked at:
Google
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
Late December, 2024
Principal
Hello Interview Premium
Your account is free and you can post anonymously if you choose.