Child 1: dog Child 2: goldfish Child 1: hippopotamus Child 2: snake ...
findLongestChain
should be a function.
testString: assert(typeof findLongestChain == 'function');
- text: findLongestChain(["certain", "each", "game", "involves", "starting", "with", "word"])
should return an array.
testString: assert(Array.isArray(findLongestChain(["certain", "each", "game", "involves", "starting", "with", "word"])));
- text: findLongestChain(["certain", "each", "game", "involves", "starting", "with", "word"])
should return ["involves", "starting", "game", "each"]
.
testString: assert.deepEqual(findLongestChain(["certain", "each", "game", "involves", "starting", "with", "word"]), ['involves', 'starting', 'game', 'each']);
- text: findLongestChain(["audino", "bagon", "kangaskhan", "banette", "bidoof", "braviary", "exeggcute", "yamask"])
should return ["braviary", "yamask", "kangaskhan"]
testString: assert.deepEqual(findLongestChain(["audino", "bagon", "kangaskhan", "banette", "bidoof", "braviary", "exeggcute", "yamask"]), ['braviary', 'yamask', 'kangaskhan']);
- text: findLongestChain(["harp", "poliwrath", "poochyena", "porygon2", "porygonz", "archana"])
should return ["poliwrath", "harp", "poochyena", "archana"]
.
testString: assert.deepEqual(findLongestChain(["harp", "poliwrath", "poochyena", "porygon2", "porygonz", "archana"]), ['poliwrath', 'harp', 'poochyena', 'archana']);
- text: findLongestChain(["scolipede", "elephant", "zeaking", "sealeo", "silcoon", "tigers"])
should return ["scolipede", "elephant", "tigers", "sealeo"]
.
testString: assert.deepEqual(findLongestChain(["scolipede", "elephant", "zeaking", "sealeo", "silcoon", "tigers"]), ['scolipede', 'elephant', 'tigers', 'sealeo']);
- text: findLongestChain(["loudred", "lumineon", "lunatone", "machamp", "magnezone", "nosepass", "petilil", "pidgeotto", "pikachu"])
should return ["machamp", "petilil", "lumineon", "nosepass"]
.
testString: assert.deepEqual(findLongestChain(["loudred", "lumineon", "lunatone", "machamp", "magnezone", "nosepass", "petilil", "pidgeotto", "pikachu"]), ['machamp', 'petilil', 'lumineon', 'nosepass']);
```