Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/careercup/CtCI-6th-Edition-JavaScript
/ palinPerm2.js
File
palinPerm2.js
chapter01/1.4 - PalinPerm/palinPerm2.js:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
function
palinPerm(s) {
2
const
sanitized = s.toUpperCase().split(
" "
).join(
""
);
3
const
freq =
new
Map();
4
for
(
let
i = 0; i < sanitized.length; i++) {
Callers
nothing calls this directly
Calls
1
palinPerm
Function · 0.70
Tested by
no test coverage detected