Question: In Python, I have to implement Double linked list where each node stores one line as a separate class to test the following functions for
In Python, I have to implement Double linked list where each node stores one line as a separate class to test the following functions for each class: (1) cmd_h: move cursor one character to the left (2) cmd_I: move cursor one character to the right (3) cmd_j: move cursor vertically one line (4) cmd_k: move cursor vertically one line (5) cmd_X: delete the character to the left of the cursor (6) cmd_D: remove on current line from cursor to the end (7) cmd_dd: delete current line and move cursor to the beginning of next line (8) cmd_ddp: transpose two adjacent lines (9) cmd_n: search for next occurrence of a string (assume that string to be searched is fully in one line. (10) cmd_wq: write your representation as text file and save it
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
