Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/neetcode-gh/leetcode
/ getNeighbor
Function
getNeighbor
javascript/0127-word-ladder.js:53–59 ·
view source on GitHub ↗
(word, index, char)
Source
from the content-addressed store, hash-verified
51
};
52
53
const
getNeighbor = (word, index, char) => {
54
const
neighbor = word.split(
''
);
55
56
neighbor[index] = char;
57
58
return
neighbor.join(
''
);
59
};
Callers
1
transform
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected