Uber SDE-ll Interview Question 2023-August| System Design (Two Stacks Pattern)

Uber · Question · Posted Jun 2026

Question 1: Design a Text Editor Problem Statement Design a Text Editor. The cursor of the text editor is always resting in between two characters, or resting at the very ends of the text. Implement the TextEditor class: TextEditor() Initializes the object with empty text. void addText(String text) Appends text to where the cursor currently is. The cursor ends to the right of text. int deleteText(int k) Deletes k characters to the left of the cursor. Returns the number of ...

The full answer & interview discussion are available to premium members.

Log in Create a free account