Skip to content

Latest commit

 

History

History
5 lines (3 loc) · 507 Bytes

README.md

File metadata and controls

5 lines (3 loc) · 507 Bytes

Description

The following is quite a naïve attempt at solving the Penniless Pilgrim problem in Golang.

In this solution, the program stores all possible states the pilgrim could be in as he moves through the city, and the number of states already explodes when the city is comprised of 6 streets. A less memory-intensive solution would be, for instance, only having one state and having some sort of "memory" of the blocks the pilgrim has not visited yet.