1. 程式人生 > >【hackerrank】圖論內容

【hackerrank】圖論內容


一 簡單題目

A journey to the Moon

dfs 記錄一下所有聯通分支, 再排列組合公式運算一下。

https://www.hackerrank.com/challenges/journey-to-the-moon

二 難題