![]() So, if the input is like s = "ilovepython<-<-ON", then the output will be "ilovepythON", as there are two backspace character after "ilovepython" it will delete last two character, then again type "ON". ![]() So, if the input is like s 'ilovepython<-<-ON', then the output will be 'ilovepythON. Suppose we have a string s that represents characters that typed into an editor, the symbol '<-' indicates a backspace, we have to find the current state of the editor. Write your code in this editor and press 'Run' button to execute it. Suppose we have a string s that represents characters that typed into an editor, the symbol "<-" indicates a backspace, we have to find the current state of the editor. Program to find final text in an editor by performing typing and backspacing in Python. Code, Compile, Run and Debug python program online. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |