Ad
  • Custom User Avatar

    There is a problem with this Kata. In particular some legal outputs (i.e. those where a car is sat at a traffic light) cannot be used as legal inputs, since you cannot tell whether a traffic light is being obscured. To handle iterations within the function you have to retain intermediate state for the position of the traffic lights that is separate from the string representation.

  • Custom User Avatar

    I have a one liner that works a little like this, but without any branches