Company: SLK_Software__
Difficulty: medium
Cafeteria body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; line-height: 1.6; color: #333; max-width: 800px; margin: 20px auto; padding: 0 20px; } h1, h2, h3 { border-bottom: 1px solid #eee; padding-bottom: 10px; } code { background-color: #f4f4f4; padding: 2px 6px; border-radius: 4px; font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; } pre { background-color: #f4f4f4; padding: 15px; border-radius: 5px; overflow-x: auto; } strong { font-weight: 600; } Cafeteria Problem Description Jill works in a company that takes care of their employees very well. They make sure that the cafeteria is closest to the employees. The office floor is in the form of an N x M matrix. Each block either represents a work area 'W' or a cafeteria 'C' . An employee has been given access to order if the cafeteria is in either of the directions (up, down, right o