看板 Grad-ProbAsk 關於我們 聯絡資訊
如題 小弟資質可能沒這麼好 想請大大給一點提示http://i.imgur.com/OJWdYVq.jpg -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 61.227.227.95 ※ 文章網址: https://www.ptt.cc/bbs/Grad-ProbAsk/M.1485192707.A.318.html
as23041248: http://imgur.com/a/fdZiq 01/24 01:34
as23041248: 前面沒拍好 附上正面圖片 01/24 01:35
yupog2003: 應該有很多種寫法,我寫的思路是: 01/24 07:45
yupog2003: 與A相鄰一堆點中,與B相鄰的就是AB的common friend 01/24 07:46
yupog2003: 阿就測試與A相鄰的點中,發現跟B相鄰就count++,然後 01/24 07:47
yupog2003: return count 01/24 07:47
感謝 ※ 編輯: as23041248 (1.173.254.15), 01/24/2017 10:52:17