018 - fast solution w/ djikstra/dp