Design an Extensible Text Editor with Multiple Renderers

Design a lightweight text editor that maintains an initially empty text buffer. It must support appending text, removing characters from the end, and rendering the current text in multiple formats.

I...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: