docs: add idea note

This commit is contained in:
Stevan Freeborn
2024-12-07 01:49:28 -06:00
committed by GitHub
parent abf19be8cd
commit b04a5b3141
+2 -1
View File
@@ -24,6 +24,7 @@ class Map
// I'm finding all the places on the map where I can // I'm finding all the places on the map where I can
// place the obstruction, placing, and then seeing if // place the obstruction, placing, and then seeing if
// a loop is created when guard patrols map. // a loop is created when guard patrols map.
// IDEA: Only check places on the guard's path
public int IdentifyNumberOfPlacementsForNewObstruction() public int IdentifyNumberOfPlacementsForNewObstruction()
{ {
var count = 0; var count = 0;
@@ -205,4 +206,4 @@ class Map
return Direction.Up; return Direction.Up;
} }
} }