Apr-24-2020, 01:18 PM
Because you cannot back up and type over the first rectangle, you need to type both rectangles at the same time. For each pixel you print you need to determine if you type a "." or an "o".
Printing more than 1 internal rectangle works the same way except you have to test each pixel against each rectangle. What do you print if a pixel is part of multiple rectangles, the first rectangle or the last?
Printing more than 1 internal rectangle works the same way except you have to test each pixel against each rectangle. What do you print if a pixel is part of multiple rectangles, the first rectangle or the last?