Tag: graph

  • Clone Undirected Graph with Javascript

    A question that I got asked on the interview at Facebook on 2016 that I wasn’t able to finish coding within interview time frame. Finally got a chance to put it into code. I used a LeetCode as a JS platform to test a code: https://leetcode.com/problems/clone-graph/description/ /** * Definition for undirected graph. * function UndirectedGraphNode(label)…