Print shortest path to print a string on screen - GeeksforGeeks
Given a screen containing alphabets from A-Z, we can go from one character to another characters using a remote. The remote contains left, right, top and bottom keys.
Read full article from Print shortest path to print a string on screen - GeeksforGeeks