Yup, you are just mirroring the path. I exactly followed this approach

mirrorPath :: String -> String
mirrorPath []  = []
mirrorPath ('S' : xs) = 'E' : mirrorPath xs
mirrorPath ('E' : xs) = 'S' : mirrorPath xs

-Mukesh

On Mon, Apr 8, 2019 at 7:36 AM Ronan Burke <burkus...@gmail.com> wrote:
>
> My solution for this one was to just do the opposite of the route the other 
> person took. If you did something other than, I imagine things could get 
> quite messy and it would be easy to make a mistake.
>
> Their route: "SSEESE" then I would do "EESSES"
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Code Jam" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to google-code+unsubscr...@googlegroups.com.
> To post to this group, send email to google-code@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/google-code/7f2f7c1f-1e3c-46ed-8253-af9d8beeae07%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-code+unsubscr...@googlegroups.com.
To post to this group, send email to google-code@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-code/CAFHZvE8Ye6e9hRw4y25Td6gLPwGNh66qecE_Ng9d-dQnQhYuhw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to