djackson1 / tube-problem

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tube problem

Given a list of all 306 tube stations, what is the smallest amount of stations in a list to use all 26 letters

Prior

You'll need node version 7.5 or above to have access to async/await

To run

node main.js

My answer?

[cutty sark for maritime greenwich, belsize park, vauxhall, willesden junction, queensbury]

5 stations is the best possible

About


Languages

Language:JavaScript 100.0%