Thanks. Nice kata, seems easy on the first glance, but much deeper on the second. Spend a couple days thinking about it and still uncertain how it may be solved in elegant way.
I was surprised by S on the crossroad, like this:
....|
--S--
....|
Maybe you should describe it more clear, that stations can be placed not only on the 'straight' road, but also on crossing of straight roads.
Thanks. Nice kata, seems easy on the first glance, but much deeper on the second. Spend a couple days thinking about it and still uncertain how it may be solved in elegant way.
Fair enough. Done.
I was surprised by S on the crossroad, like this:
....|
--S--
....|
Maybe you should describe it more clear, that stations can be placed not only on the 'straight' road, but also on crossing of straight roads.
This comment is hidden because it contains spoiler information about the solution
Sometimes solutions loses color highlighting (like in my recent kata solution https://www.codewars.com/kata/insane-coloured-triangles/solutions/cpp). Gray wall of text looks not good. Is it any way to avoid this problem in future?