Is test case #5 broken ? [javascript]

  • 1

    I have a solution that works on js bin but not here.

    Input: "hot", "dog", ["hot","dog","dot"]
    Output: []
    Expected: [["hot","dot","dog"]]
    Stdout: {}

    I added some debugging data and it seems that the dictionary passed to the function is empty (see stdout above :

    var findLadders = function(start, end, dict) {

    Has anyone had this problem yet ?

  • 0

    I had the same problem, seems broken.

    UPD: it is not:

    Despite the name dict which implies a dictionary, it is actually a Set object.

    Thanks, 1337c0d03r

Log in to reply

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