AlgoMaster Logo

Design a Text Editor

operations=[TextEditor, addText, deleteText, addText, cursorRight, cursorLeft, deleteText, cursorLeft, cursorRight],values=[null, leetcode, 4, practice, 3, 9, 4, 7, 6]
0 / 56
algomaster.io
Step:Initialize TextEditor with empty text and cursor at position 0