3 ms·
30B searches looks like an overkill... should find a way of creating a graph and use https://en.wikipedia.org/wiki/Floyd%E2%80%93Warshall_algorithm https://en.w
by baq 10y ago
30B searches looks like an overkill... should find a way of creating a graph and use https://en.wikipedia.org/wiki/Floyd%E2%80%93Warshall_algorithm https://en.wikipedia.org/wiki/Floyd%E2%80%93Warshall_algorit... or something on that.
the end result is nice though.