Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/neetcode-gh/leetcode
/ isTwoDigit
Function
isTwoDigit
javascript/0091-decode-ways.js:33–37 ·
view source on GitHub ↗
(str, index)
Source
from the content-addressed store, hash-verified
31
};
32
33
var
isTwoDigit = (str, index) => {
34
const
twoDigit = Number(str.slice(index, index + 2));
35
36
return
10 <= twoDigit && twoDigit <= 26;
37
};
38
39
/**
40
* DP - Bottom Up
Callers
2
dfs
Function · 0.85
decode
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected