Write a function (as pseudo code) that gets a matrix of colors, and a starting point, and
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a function (as pseudo code) that gets a matrix of colors, and a starting point, and colors the white area connected to the starting pint with RED.
See examples below:
The green point on the left represents the starting point.
The red points are the area containing the starting point.
For the pseudo code you may use colors by writing, e.g., BLACK, WHITE, RED. For example:
If
Use recursion.
Related Book For
Smith and Roberson Business Law
ISBN: 978-0538473637
15th Edition
Authors: Richard A. Mann, Barry S. Roberts
Posted Date: