Does the algorithm works for directed graphs?


  • 0
    J

    Does the algorithm solving this problem also work on directed graphs? It seems to me that having neighbor information suffices for cloning directed graphs.


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.