Optimal cost for strengthening or destroying a given network | Hacker News Reader