Fix typo: "reaplce" => "replace" (#24056)
This commit is contained in:
committed by
Randell Dawson
parent
20dc65f6ce
commit
421141d7f4
@ -17,7 +17,7 @@ The problem is pretty simple and usually follows these steps:
|
|||||||
2. Decide wether you want to go in 4 directions (**N, S, W, E**) or 8 directions (**N, S, W, E, NW, NE, SW, SE**).
|
2. Decide wether you want to go in 4 directions (**N, S, W, E**) or 8 directions (**N, S, W, E, NW, NE, SW, SE**).
|
||||||
3. Choose a replacement color and a target color.
|
3. Choose a replacement color and a target color.
|
||||||
4. Travel in those directions.
|
4. Travel in those directions.
|
||||||
5. If the tile you land on is a target, reaplce it with the chosen color.
|
5. If the tile you land on is a target, replace it with the chosen color.
|
||||||
6. Repeat 4 and 5 until you've been everywhere within the boundaries.
|
6. Repeat 4 and 5 until you've been everywhere within the boundaries.
|
||||||
|
|
||||||
Let's take the following array as an example:
|
Let's take the following array as an example:
|
||||||
|
Reference in New Issue
Block a user