80's Kids #2: Help ALF Find His Spaceship
Last updated
Was this helpful?
Last updated
Was this helpful?
Late last night in the Tanner household, ALF was repairing his spaceship so he might get back to Melmac. Unfortunately for him, he forgot to put on the parking brake, and the spaceship took off during repair. Now it's hovering in space.
ALF has the technology to bring the spaceship home if he can lock on to its location.
Given a map:
The map will be given in the form of a string with \n separating new lines. The bottom left of the map is [0, 0]. X is ALF's spaceship.
In this example:
If you cannot find the spaceship, the result should be
Can you help ALF?
Check out my other 80's Kids Katas: