A medium leetcode problem solved by Graph Theory with Python and JavaScript | Hacker News Reader