Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tiwarishashwat/InterviewCodes
/ getFreq
Method
getFreq
WordsSubsets.java:26–32 ·
view source on GitHub ↗
(String word)
Source
from the content-addressed store, hash-verified
24
return
res;
25
}
26
public
int
[] getFreq(String word){
27
int
freq[] =
new
int
[26];
28
for
(
int
i=0;i<word.length();i++){
29
freq[word.charAt(i) -
'a'
]++;
30
}
31
return
freq;
32
}
33
}
Callers
1
wordSubsets
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected